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
|
||||
ingress:
|
||||
host: axion1337.chat
|
||||
podAnnotations:
|
||||
# Force pod restart bei ConfigMap Änderungen
|
||||
checksum/config: "element-web-docs"
|
||||
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:
|
||||
- name: element-web-docs
|
||||
configMap:
|
||||
name: ess-element-web-docs
|
||||
defaultMode: 0644
|
||||
- name: html-docs
|
||||
emptyDir: {}
|
||||
volumeMounts:
|
||||
- name: element-web-docs
|
||||
mountPath: /usr/share/nginx/html/docs/setup
|
||||
readOnly: true
|
||||
- name: html-docs
|
||||
mountPath: /usr/share/nginx/html/docs
|
||||
|
||||
# Element Admin
|
||||
elementAdmin:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user