Skip to content

Commit

Permalink
Use pod local/localhost for jaeger-all-in-one
Browse files Browse the repository at this point in the history
  • Loading branch information
highb committed Apr 26, 2022
1 parent 6383b4a commit c941636
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 43 deletions.
2 changes: 1 addition & 1 deletion examples/hotrod/kubernetes/base/hotrod/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
args: ["all"]
env:
- name: JAEGER_AGENT_HOST
value: jaeger.example-hotrod.svc.cluster.local
value: localhost
- name: JAEGER_AGENT_PORT
value: "6831"
ports:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../hotrod

resources:
- service.yaml

patches:
- target:
group: apps
version: v1
kind: Deployment
name: example-hotrod
patch: |-
- op: add
path: /spec/template/spec/containers/-
value:
image: jaegertracing/all-in-one:latest
name: jaeger
ports:
- containerPort: 6831
name: tracing-jaeger
- containerPort: 16686
name: frontend-jaeger
resources:
limits:
cpu: 100m
memory: 100M
requests:
cpu: 100m
memory: 100M
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ metadata:
name: jaeger
spec:
selector:
app: jaeger
app: example-hotrod
ports:
- name: tracing
protocol: UDP
port: 6831
targetPort: tracing
targetPort: tracing-jaeger
- name: frontend
protocol: TCP
port: 16686
targetPort: frontend
targetPort: frontend-jaeger
32 changes: 0 additions & 32 deletions examples/hotrod/kubernetes/base/jaeger/deployment.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions examples/hotrod/kubernetes/base/jaeger/kustomization.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion examples/hotrod/kubernetes/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- base/hotrod
# If you only want the hotrod application, uncomment this line and comment out jaeger-all-in-one
# - base/hotrod
- base/jaeger

namespace: example-hotrod
Expand Down

0 comments on commit c941636

Please sign in to comment.