Skip to content

Commit

Permalink
Include OTEL_HOST and KUBE_NODE_NAME Env Vars (#9)
Browse files Browse the repository at this point in the history
fixes: Remove Hardcoded OTEL IP addresses in code #7
  • Loading branch information
itsmegb authored Oct 30, 2023
1 parent 8d26ebf commit b47210f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion order-processor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ spec:
- name: order-processor
image: ghcr.io/georgep1ckers/tracey-reloaded-order-processor:latest
ports:
- containerPort: 8080
- containerPort: 8080
env:
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_HOST
value: "$(KUBE_NODE_NAME):4317"
10 changes: 9 additions & 1 deletion stock-controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ spec:
- name: stock-controller
image: ghcr.io/georgep1ckers/tracey-reloaded-stock-controller:latest
ports:
- containerPort: 8081
- containerPort: 8081
env:
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_HOST
value: "$(KUBE_NODE_NAME):4317"
10 changes: 9 additions & 1 deletion warehouse-interface-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ spec:
spec:
containers:
- name: warehouse-interface
image: ghcr.io/georgep1ckers/tracey-reloaded-warehouse-interface:latest
image: ghcr.io/georgep1ckers/tracey-reloaded-warehouse-interface:latest
env:
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_HOST
value: "$(KUBE_NODE_NAME):4317"

0 comments on commit b47210f

Please sign in to comment.