Last active
January 14, 2022 16:18
-
-
Save welshstew/e7ce030551082bfd163794ce57b83574 to your computer and use it in GitHub Desktop.
Supporting yamls for Jaeger
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
GATEWAY_URL=$( \ | |
oc get route istio-ingressgateway -n istio-system \ | |
-o template --template '{{ "http://" }}{{ .spec.host }}') | |
curl ${GATEWAY_URL}/trace | |
JAEGER_URL=$( \ | |
oc get route jaeger -n istio-system \ | |
-o template --template '{{ "https://" }}{{ .spec.host }}') |
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
apiVersion: networking.istio.io/v1beta1 | |
kind: Gateway | |
metadata: | |
name: observe-jaeger-gateway | |
spec: | |
selector: | |
istio: ingressgateway # use istio default controller | |
servers: | |
- port: | |
number: 80 | |
name: http | |
protocol: HTTP | |
hosts: | |
- "*" |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: servicea | |
version: v1 | |
name: servicea | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: servicea | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: servicea | |
version: v1 | |
annotations: | |
sidecar.istio.io/inject: "true" | |
spec: | |
containers: | |
- name: servicea | |
image: quay.io/swinches/ossm-tracing-servicea:1.0 | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 8080 | |
name: http | |
protocol: TCP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: servicea | |
labels: | |
app: servicea | |
spec: | |
ports: | |
- name: http | |
port: 8080 | |
selector: | |
app: servicea |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: serviceb | |
version: v1 | |
name: serviceb | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: serviceb | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: serviceb | |
version: v1 | |
annotations: | |
sidecar.istio.io/inject: "true" | |
spec: | |
containers: | |
- name: serviceb | |
image: quay.io/swinches/ossm-tracing-serviceb:1.0 | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 8080 | |
name: http | |
protocol: TCP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: serviceb | |
labels: | |
app: serviceb | |
spec: | |
ports: | |
- name: http | |
port: 8080 | |
selector: | |
app: serviceb |
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
apiVersion: networking.istio.io/v1beta1 | |
kind: VirtualService | |
metadata: | |
name: observe-jaeger-vs | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- observe-jaeger-gateway | |
http: | |
- match: | |
- uri: | |
exact: /trace | |
rewrite: | |
uri: / | |
route: | |
- destination: | |
host: servicea | |
port: | |
number: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment