mirror of
https://github.com/wahyd4/helm-charts.git
synced 2026-08-09 04:26:02 +10:00
[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:
co-authored by
André Bauer
parent
4678d148df
commit
086f1f7f08
@@ -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 }}
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user