Skip to content

Commit

Permalink
added vars for proxy endpoints and also for reading and health checks
Browse files Browse the repository at this point in the history
Signed-off-by: Nicole <[email protected]>
  • Loading branch information
nfrazier08 committed Mar 1, 2024
1 parent e7b492f commit cb1c7ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-node-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- prometheus
- exporter
type: application
version: 4.30.3
version: 4.31.3
appVersion: 1.7.0
home: https://github.com/prometheus/node_exporter/
sources:
Expand Down
10 changes: 6 additions & 4 deletions charts/prometheus-node-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ spec:
{{- end }}
- --secure-listen-address=:{{ .Values.service.port}}
- --upstream=http://127.0.0.1:{{ $servicePort }}/
- --proxy-endpoints-port=8888
- --proxy-endpoints-port={{ .Values.kubeRBACProxy.proxyEndpointsPort }}
- --config-file=/etc/kube-rbac-proxy-config/config-file.yaml
volumeMounts:
- name: kube-rbac-proxy-config
Expand All @@ -205,13 +205,15 @@ spec:
{{- if .Values.kubeRBACProxy.enableHostPort }}
hostPort: {{ .Values.service.port }}
{{- end }}
- containerPort: 8888
- containerPort: {{ .Values.kubeRBACProxy.healthzPort }}
{{- if .Values.kubeRBACProxy.enableHealthzHostPort }}
hostPort: {{ .Values.kubeRBACProxy.healthzPort }}
{{- end }}
name: "http-healthz"
readinessProbe:
httpGet:
scheme: HTTPS
port: 8888
path: healthz
port: {{ .Values.kubeRBACProxy.healthzPort }}
initialDelaySeconds: 5
timeoutSeconds: 5
{{- if .Values.kubeRBACProxy.resources }}
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ kubeRBACProxy:
# Configure a hostPort. If true, hostPort will be enabled in the container and set to service.port.
enableHostPort: false

# Configure Proxy Endpoints Port
proxyEndpointsPort: 8888
# Specify the port to be used for the http-healthz containerPort
healthzPort: 8888
# Configure a hostPort for the http-healthz containerPort. If true, hostPort will be enabled in the container and set to the healthzPort value.
enableHealthzHostPort: false

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit cb1c7ec

Please sign in to comment.