Skip to content

Commit ceb759d

Browse files
committed
refs #914: Add an initContainer to fix permissions
1 parent 6ed1a15 commit ceb759d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deployment/chart/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ spec:
2424
{{- if .Values.hostnameOverride }}
2525
hostname: {{ .Values.hostnameOverride }}
2626
{{- end }}
27+
initContainers:
28+
- name: permissions
29+
image: busybox:latest
30+
imagePullPolicy: IfNotPresent
31+
command: ["/bin/sh"]
32+
args: ["-c", "chown -R 1000:1000 /home/coder"]
33+
volumeMounts:
34+
- name: data
35+
mountPath: /home/coder
2736
containers:
2837
- name: {{ .Chart.Name }}
2938
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

0 commit comments

Comments
 (0)