fix the
CreateContainerConfigError.
This commit is contained in:
parent
0541135341
commit
6a2c17834b
@ -80,40 +80,11 @@ spec:
|
|||||||
name: config-writable
|
name: config-writable
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: config-setup
|
- name: config-setup
|
||||||
image: "ghcr.io/gethomepage/homepage:latest"
|
image: "busybox:1.36"
|
||||||
command: ['sh', '-c']
|
command: ['sh', '-c', 'cp -r /app/config-ro/* /app/config/ || true; chmod -R 755 /app/config; chown -R 1000:1000 /app/config']
|
||||||
args:
|
|
||||||
- |
|
|
||||||
cp -r /app/config-ro/* /app/config/ 2>/dev/null || true
|
|
||||||
chmod -R 755 /app/config
|
|
||||||
chown -R 1000:1000 /app/config
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/config-ro/custom.js
|
- mountPath: /app/config-ro
|
||||||
name: homepage-config
|
name: homepage-config
|
||||||
subPath: custom.js
|
|
||||||
- mountPath: /app/config-ro/custom.css
|
|
||||||
name: homepage-config
|
|
||||||
subPath: custom.css
|
|
||||||
- mountPath: /app/config-ro/bookmarks.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: bookmarks.yaml
|
|
||||||
- mountPath: /app/config-ro/docker.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: docker.yaml
|
|
||||||
- mountPath: /app/config-ro/kubernetes.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: kubernetes.yaml
|
|
||||||
- mountPath: /app/config-ro/services.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: services.yaml
|
|
||||||
- mountPath: /app/config-ro/settings.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: settings.yaml
|
|
||||||
- mountPath: /app/config-ro/widgets.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: widgets.yaml
|
|
||||||
- mountPath: /app/config
|
- mountPath: /app/config
|
||||||
name: config-writable
|
name: config-writable
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user