Skip to content
Open
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
4 changes: 4 additions & 0 deletions charts/flagger/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ spec:
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.podSecurityContext.enabled }}
securityContext:
{{ toYaml .Values.podSecurityContext.context | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
Expand Down
18 changes: 16 additions & 2 deletions charts/flagger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,27 @@ ingressAnnotationsPrefix: ""
# ingress class used for annotating HTTPProxy objects
ingressClass: ""

# when enabled, it will add a security context for the flagger pod. You may
# need to disable this if you are running flagger on OpenShift
# when enabled, it will add a container level security context for the flagger pod.
# You may need to disable this if you are running flagger on OpenShift
securityContext:
enabled: true
context:
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
privileged: false
readOnlyRootFilesystem: true

# when enabled, it will add a pod level security context for the flagger pod.
# You may need to disable this if you are running flagger on OpenShift
podSecurityContext:
enabled: true
context:
runAsGroup: 10001
runAsNonRoot: true
runAsUser: 10001
fsGroup: 10001
supplementalGroups: [10001]

# when specified, flagger will publish events to the provided webhook
eventWebhook: ""
Expand Down