added initcontainer
This commit is contained in:
@@ -79,6 +79,15 @@ spec:
|
|||||||
app.kubernetes.io/instance: wger
|
app.kubernetes.io/instance: wger
|
||||||
app.kubernetes.io/name: wger
|
app.kubernetes.io/name: wger
|
||||||
spec:
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: fix-permissions
|
||||||
|
image: alpine:latest
|
||||||
|
command: ["sh", "-c", "rm -rf /home/wger/static/lost+found"]
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
volumeMounts:
|
||||||
|
- name: static
|
||||||
|
mountPath: /home/wger/static
|
||||||
containers:
|
containers:
|
||||||
- name: wger
|
- name: wger
|
||||||
image: wger/server:latest
|
image: wger/server:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user