Skip to content

Commit 53ec22d

Browse files
authored
openobserve-collector: Add K8S_NODE_IP envs (#147)
1 parent 47c22e2 commit 53ec22d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/openobserve-collector/templates/agent.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ spec:
1414
valueFrom:
1515
fieldRef:
1616
fieldPath: spec.nodeName
17+
- name: K8S_NODE_IP
18+
valueFrom:
19+
fieldRef:
20+
fieldPath: status.hostIP
1721
{{- with .Values.agent.tolerations }}
1822
tolerations:
1923
{{- toYaml . | nindent 8 }}

charts/openobserve-collector/templates/gateway.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
valueFrom:
2323
fieldRef:
2424
fieldPath: spec.nodeName
25+
- name: K8S_NODE_IP
26+
valueFrom:
27+
fieldRef:
28+
fieldPath: status.hostIP
2529
{{- with .Values.gateway.tolerations }}
2630
tolerations:
2731
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)