Skip to content

Commit 9c52a4b

Browse files
jcpunkjkroepke
andauthored
[kube-prometheus-stack] Allow setting hostUsers on operator (#6474)
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
1 parent 2da48d2 commit 9c52a4b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ spec:
218218
dnsConfig:
219219
{{ toYaml . | indent 8 }}
220220
{{- end }}
221+
{{- if kindIs "bool" .Values.prometheusOperator.hostUsers }}
222+
hostUsers: {{ .Values.prometheusOperator.hostUsers }}
223+
{{- end }}
221224
{{- if .Values.prometheusOperator.securityContext }}
222225
securityContext:
223226
{{ toYaml .Values.prometheusOperator.securityContext | indent 8 }}

charts/kube-prometheus-stack/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,6 +3254,10 @@ prometheusOperator:
32543254
seccompProfile:
32553255
type: RuntimeDefault
32563256

3257+
## Setup hostUsers for prometheus-operator
3258+
## ref: https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/
3259+
hostUsers: ~
3260+
32573261
## Container-specific security context configuration
32583262
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
32593263
##

0 commit comments

Comments
 (0)