[kube-state-metrics] Add containerSecurityContext (#1017)

Signed-off-by: Biava, Lorenzo <lorenzo.biava@nuance.com>

Co-authored-by: André Bauer <monotek@users.noreply.github.com>
This commit is contained in:
Lorenzo Biava
2021-06-06 18:37:25 +02:00
committed by GitHub
co-authored by André Bauer
parent 4678d148df
commit 086f1f7f08
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 3.1.1
version: 3.2.0
appVersion: 2.0.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
@@ -195,6 +195,10 @@ spec:
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- end }}
{{- if .Values.containerSecurityContext }}
securityContext:
{{ toYaml .Values.containerSecurityContext | indent 10 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
+5
View File
@@ -88,6 +88,11 @@ securityContext:
runAsUser: 65534
fsGroup: 65534
## Specify security settings for a Container
## Allows overrides and additional options compared to (Pod) securityContext
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
containerSecurityContext: {}
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}