mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus-node-exporter] add securityContext value (#9618)
it needs to be configurable. Signed-off-by: gangseok.lee <gangseok.lee@samsung.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0bf9b58fca
commit
39dfa9f52b
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: "0.16.0"
|
||||
description: A Helm chart for prometheus node-exporter
|
||||
name: prometheus-node-exporter
|
||||
version: 0.6.0
|
||||
version: 0.6.1
|
||||
home: https://github.com/prometheus/node_exporter/
|
||||
sources:
|
||||
- https://github.com/prometheus/node_exporter/
|
||||
|
||||
@@ -54,6 +54,7 @@ The following table lists the configurable parameters of the Node Exporter chart
|
||||
| `serviceAccount.create` | Specifies whether a service account should be created. | `true` | |
|
||||
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | | |
|
||||
| `serviceAccount.imagePullSecrets` | Specify image pull secrets | `[]` | |
|
||||
| `securityContext` | SecurityContext | `{"runAsNonRoot": true, "runAsUser": 65534}` | |
|
||||
| `tolerations` | List of node taints to tolerate | `- effect: NoSchedule operator: Exists` | |
|
||||
| `priorityClassName` | Name of Priority Class to assign pods | `nil` | |
|
||||
|
||||
|
||||
@@ -19,9 +19,10 @@ spec:
|
||||
{{- if and .Values.rbac.create .Values.serviceAccount.create }}
|
||||
serviceAccountName: {{ template "prometheus-node-exporter.serviceAccountName" . }}
|
||||
{{- end }}
|
||||
{{- if .Values.securityContext }}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
{{ toYaml .Values.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.priorityClassName }}
|
||||
priorityClassName: {{ .Values.priorityClassName }}
|
||||
{{- end }}
|
||||
|
||||
@@ -33,6 +33,10 @@ serviceAccount:
|
||||
name:
|
||||
imagePullSecrets: []
|
||||
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
|
||||
rbac:
|
||||
## If true, create & use RBAC resources
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user