Skip to content

Commit

Permalink
don't set securitycontext on openshift/okd
Browse files Browse the repository at this point in the history
If running on OpenShift, these settings cause problems because the
user and group ids are below the range openshift expects. If not
specified, they're automatically handled by OpenShift.
  • Loading branch information
eb4x committed Jun 25, 2022
1 parent 9b7425a commit 04acc2a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ spec:
spec:
restartPolicy: Never
serviceAccountName: {{ template "consul.fullname" . }}-gossip-encryption-autogenerate
{{- if not .Values.global.openshift.enabled }}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 100
fsGroup: 1000
{{- end }}
containers:
- name: gossip-encryption-autogen
image: "{{ .Values.global.imageK8S }}"
Expand Down

0 comments on commit 04acc2a

Please sign in to comment.