fix: Update endpoint in kubeletstats to use NODE_IP and add NODE_IP environment variable

This commit is contained in:
Nawaz Dhandala
2026-03-19 18:34:28 +00:00
parent fb8126d5d6
commit 7e98e6d7ae
2 changed files with 5 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ data:
kubeletstats:
collection_interval: {{ .Values.collectionInterval }}
auth_type: serviceAccount
endpoint: "https://${env:NODE_NAME}:10250"
endpoint: "https://${env:NODE_IP}:10250"
insecure_skip_verify: true
metric_groups:
- node

View File

@@ -34,6 +34,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: ONEUPTIME_API_KEY
valueFrom:
secretKeyRef: