-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds eureka and test infrastructure to support it
This adds Eureka discovery properties, and some test infrastructure so we can easily verify it from a different (test) pod. Signed-off-by: Adrian Cole <[email protected]>
- Loading branch information
Adrian Cole
committed
Feb 20, 2024
1 parent
3038dc9
commit 3e9baaf
Showing
10 changed files
with
166 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# To avoid a race, sleep until Eureka is running before starting zipkin. | ||
command: ['/bin/sh', '-c'] | ||
args: | ||
- 'while ! wget -q --spider http://localhost:8761/eureka/v2/apps;do sleep 1; done && start-zipkin' | ||
|
||
zipkin: | ||
discovery: | ||
eureka: | ||
serviceUrl: http://localhost:8761/eureka/v2 | ||
hostName: zipkin | ||
|
||
# extra containers are in the same pod, so this means Eureka is accessible to | ||
# zipkin via localhost. | ||
extraContainers: | ||
- name: eureka | ||
image: 'ghcr.io/openzipkin/zipkin-eureka' | ||
ports: | ||
- containerPort: 8761 | ||
|
||
# test-connection runs in a different pod, so it can't verify Eureka unless we | ||
# expose a service port. | ||
extraServicePorts: | ||
- port: 8761 | ||
targetPort: 8761 | ||
protocol: TCP | ||
name: eureka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# Tests use a different pod and access zipkin via its service port. | ||
# This makes sure we can change this to a value different from what the | ||
# container listens on (9411). | ||
service: | ||
port: 9413 | ||
|
||
zipkin: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters