fix: use init-container to copy docs from ConfigMap to nginx html
This commit is contained in:
parent
0c67a249fa
commit
cf8bc00613
@ -61,16 +61,37 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
ingress:
|
ingress:
|
||||||
host: axion1337.chat
|
host: axion1337.chat
|
||||||
|
podAnnotations:
|
||||||
|
# Force pod restart bei ConfigMap Änderungen
|
||||||
|
checksum/config: "element-web-docs"
|
||||||
additional:
|
additional:
|
||||||
|
initContainers:
|
||||||
|
- name: copy-docs
|
||||||
|
image: busybox:1.36
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
mkdir -p /html/docs/setup
|
||||||
|
cp /config/README-Element-Setup.md /html/docs/setup/
|
||||||
|
cp /config/element-setup-windows.cmd /html/docs/setup/
|
||||||
|
cp /config/element-setup-macos.command /html/docs/setup/
|
||||||
|
cp /config/element-setup-linux.sh /html/docs/setup/
|
||||||
|
chmod 644 /html/docs/setup/*
|
||||||
|
volumeMounts:
|
||||||
|
- name: element-web-docs
|
||||||
|
mountPath: /config
|
||||||
|
- name: html-docs
|
||||||
|
mountPath: /html
|
||||||
volumes:
|
volumes:
|
||||||
- name: element-web-docs
|
- name: element-web-docs
|
||||||
configMap:
|
configMap:
|
||||||
name: ess-element-web-docs
|
name: ess-element-web-docs
|
||||||
defaultMode: 0644
|
- name: html-docs
|
||||||
|
emptyDir: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: element-web-docs
|
- name: html-docs
|
||||||
mountPath: /usr/share/nginx/html/docs/setup
|
mountPath: /usr/share/nginx/html/docs
|
||||||
readOnly: true
|
|
||||||
|
|
||||||
# Element Admin
|
# Element Admin
|
||||||
elementAdmin:
|
elementAdmin:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user