fixed deployment for config
This commit is contained in:
parent
cfaa0097ae
commit
a58bd673e8
@ -24,6 +24,21 @@ spec:
|
|||||||
enableServiceLinks: true
|
enableServiceLinks: true
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
initContainers:
|
||||||
|
- name: copy-config
|
||||||
|
image: busybox:1.36
|
||||||
|
command: ['sh', '-c']
|
||||||
|
args:
|
||||||
|
- |
|
||||||
|
cp /config-source/* /app/config/ 2>/dev/null || true
|
||||||
|
chmod -R 644 /app/config/*.yaml
|
||||||
|
chmod -R 644 /app/config/*.js
|
||||||
|
chmod -R 644 /app/config/*.css
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /config-source
|
||||||
|
name: homepage-config
|
||||||
|
- mountPath: /app/config
|
||||||
|
name: config-writable
|
||||||
containers:
|
containers:
|
||||||
- name: homepage
|
- name: homepage
|
||||||
image: "ghcr.io/gethomepage/homepage:latest"
|
image: "ghcr.io/gethomepage/homepage:latest"
|
||||||
@ -36,35 +51,13 @@ spec:
|
|||||||
containerPort: 3000
|
containerPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app/config/custom.js
|
- mountPath: /app/config
|
||||||
name: homepage-config
|
name: config-writable
|
||||||
subPath: custom.js
|
|
||||||
- mountPath: /app/config/custom.css
|
|
||||||
name: homepage-config
|
|
||||||
subPath: custom.css
|
|
||||||
- mountPath: /app/config/bookmarks.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: bookmarks.yaml
|
|
||||||
- mountPath: /app/config/docker.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: docker.yaml
|
|
||||||
- mountPath: /app/config/kubernetes.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: kubernetes.yaml
|
|
||||||
- mountPath: /app/config/services.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: services.yaml
|
|
||||||
- mountPath: /app/config/settings.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: settings.yaml
|
|
||||||
- mountPath: /app/config/widgets.yaml
|
|
||||||
name: homepage-config
|
|
||||||
subPath: widgets.yaml
|
|
||||||
- mountPath: /app/config/logs
|
|
||||||
name: logs
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: homepage-config
|
- name: homepage-config
|
||||||
configMap:
|
configMap:
|
||||||
name: homepage-config
|
name: homepage-config
|
||||||
- name: logs
|
- name: logs
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: config-writable
|
||||||
|
emptyDir: {}
|
||||||
Loading…
x
Reference in New Issue
Block a user