Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NodeExporter dnsPolicy option. #2079

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cost-analyzer/charts/prometheus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Parameter | Description | Default
`initChownData.resources` | init-chown-data pod resource requests & limits | `{}`
`kube-state-metrics.disabled` | If false, create kube-state-metrics sub-chart, see the [kube-state-metrics chart for configuration options](https://github.com/helm/charts/tree/master/stable/kube-state-metrics) | `false`
`nodeExporter.enabled` | If true, create node-exporter | `true`
`nodeExporter.dnsPolicy` | node-exporter dns policy | `ClusterFirstWithHostNet`
`nodeExporter.name` | node-exporter container name | `node-exporter`
`nodeExporter.image.repository` | node-exporter container image repository| `prom/node-exporter`
`nodeExporter.image.tag` | node-exporter container image tag | `v0.18.1`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
{{ toYaml .Values.nodeExporter.affinity | indent 8 }}
{{- end }}
serviceAccountName: {{ template "prometheus.serviceAccountName.nodeExporter" . }}
{{- if .Values.nodeExporter.dnsPolicy }}
dnsPolicy: "{{ .Values.nodeExporter.dnsPolicy }}"
{{- end }}
{{- if .Values.nodeExporter.priorityClassName }}
priorityClassName: "{{ .Values.nodeExporter.priorityClassName }}"
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions cost-analyzer/charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ nodeExporter:
##
hostPID: true

## node-exporter dns policy
##
dnsPolicy: ClusterFirstWithHostNet

## node-exporter container name
##
name: node-exporter
Expand Down