added initcontainer
This commit is contained in:
@@ -79,6 +79,15 @@ spec:
|
||||
app.kubernetes.io/instance: wger
|
||||
app.kubernetes.io/name: wger
|
||||
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:
|
||||
- name: wger
|
||||
image: wger/server:latest
|
||||
|
||||
Reference in New Issue
Block a user