node-exporter: use endpoints section and lookups to set port
This PS moves node-exporter to use the endpoints section and lookups to set the ports it serves on. Change-Id: Id6d71b12e531375e792384ac4410bce74170d033
This commit is contained in:
parent
0b3307769e
commit
173c4a73ac
@ -65,8 +65,8 @@ spec:
|
|||||||
- --collector.mountstats
|
- --collector.mountstats
|
||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
containerPort: {{ .Values.network.node_exporter.port }}
|
containerPort: {{ tuple "node_metrics" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
hostPort: {{ .Values.network.node_exporter.port }}
|
hostPort: {{ tuple "node_metrics" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.node_exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.node_exporter | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: proc
|
- name: proc
|
||||||
|
@ -33,8 +33,8 @@ spec:
|
|||||||
clusterIP: None
|
clusterIP: None
|
||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
port: {{ .Values.network.node_exporter.port }}
|
port: {{ tuple "node_metrics" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
targetPort: {{ .Values.network.node_exporter.port }}
|
targetPort: {{ tuple "node_metrics" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
selector:
|
selector:
|
||||||
{{ tuple $envAll "node_exporter" "metrics" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
{{ tuple $envAll "node_exporter" "metrics" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -103,10 +103,6 @@ monitoring:
|
|||||||
node_exporter:
|
node_exporter:
|
||||||
scrape: true
|
scrape: true
|
||||||
|
|
||||||
network:
|
|
||||||
node_exporter:
|
|
||||||
port: 9100
|
|
||||||
|
|
||||||
endpoints:
|
endpoints:
|
||||||
cluster_domain_suffix: cluster.local
|
cluster_domain_suffix: cluster.local
|
||||||
local_image_registry:
|
local_image_registry:
|
||||||
@ -134,8 +130,6 @@ endpoints:
|
|||||||
port:
|
port:
|
||||||
metrics:
|
metrics:
|
||||||
default: 9100
|
default: 9100
|
||||||
prometheus_port:
|
|
||||||
default: 9100
|
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user