Skip to content

Commit

Permalink
Supply runAsUser at the container level
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Apr 17, 2019
1 parent 03127a9 commit dc1c168
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyterhub/templates/hub/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ spec:
serviceAccountName: hub
{{- end }}
securityContext:
runAsUser: {{ .Values.hub.uid }}
fsGroup: {{ .Values.hub.fsGid }}
{{- if .Values.hub.imagePullSecret.enabled }}
imagePullSecrets:
Expand Down Expand Up @@ -113,6 +112,8 @@ spec:
{{- with .Values.hub.image.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
securityContext:
runAsUser: {{ .Values.hub.uid }}
env:
- name: PYTHONUNBUFFERED
value: "1"
Expand Down

0 comments on commit dc1c168

Please sign in to comment.