add init
This commit is contained in:
@@ -240,16 +240,6 @@ mautrix-discord:
|
|||||||
targetPort: 29334
|
targetPort: 29334
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
persistence:
|
persistence:
|
||||||
data:
|
|
||||||
storageClass: ceph-block
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
size: 500Mi
|
|
||||||
retain: true
|
|
||||||
advancedMounts:
|
|
||||||
main:
|
|
||||||
main:
|
|
||||||
- path: /data
|
|
||||||
readOnly: false
|
|
||||||
config:
|
config:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: secret
|
type: secret
|
||||||
@@ -261,6 +251,27 @@ mautrix-discord:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
subPath: config.yaml
|
subPath: config.yaml
|
||||||
|
registration:
|
||||||
|
enabled: true
|
||||||
|
type: secret
|
||||||
|
name: mautrix-discord-config-secret
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /data/mautrix-discord-registration.yaml
|
||||||
|
readOnly: true
|
||||||
|
mountPropagation: None
|
||||||
|
subPath: mautrix-discord-registration.yaml
|
||||||
|
data:
|
||||||
|
storageClass: ceph-block
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 500Mi
|
||||||
|
retain: true
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
main:
|
||||||
|
- path: /data
|
||||||
|
readOnly: false
|
||||||
mautrix-whatsapp:
|
mautrix-whatsapp:
|
||||||
global:
|
global:
|
||||||
nameOverride: mautrix-whatsapp
|
nameOverride: mautrix-whatsapp
|
||||||
@@ -271,6 +282,22 @@ mautrix-whatsapp:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
strategy: RollingUpdate
|
strategy: RollingUpdate
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
|
initContainers:
|
||||||
|
init-copy-config:
|
||||||
|
image:
|
||||||
|
repository: busybox
|
||||||
|
tag: 1.37.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 128Mi
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -ec
|
||||||
|
- |
|
||||||
|
cp -f /tmp/config.yaml /data/config.yml
|
||||||
|
cp -f /tmp/mautrix-whatsapp-registration.yaml /data/registration.yml
|
||||||
containers:
|
containers:
|
||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
@@ -290,6 +317,28 @@ mautrix-whatsapp:
|
|||||||
targetPort: 29318
|
targetPort: 29318
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
persistence:
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
type: secret
|
||||||
|
name: mautrix-whatsapp-config-secret
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
init-copy-config:
|
||||||
|
- path: /tmp/config.yaml
|
||||||
|
readOnly: true
|
||||||
|
mountPropagation: None
|
||||||
|
subPath: config.yaml
|
||||||
|
registration:
|
||||||
|
enabled: true
|
||||||
|
type: secret
|
||||||
|
name: mautrix-whatsapp-config-secret
|
||||||
|
advancedMounts:
|
||||||
|
main:
|
||||||
|
init-copy-config:
|
||||||
|
- path: /tmp/mautrix-whatsapp-registration.yaml
|
||||||
|
readOnly: true
|
||||||
|
mountPropagation: None
|
||||||
|
subPath: mautrix-whatsapp-registration.yaml
|
||||||
data:
|
data:
|
||||||
storageClass: ceph-block
|
storageClass: ceph-block
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
@@ -297,20 +346,12 @@ mautrix-whatsapp:
|
|||||||
retain: true
|
retain: true
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
main:
|
||||||
|
init-copy-config:
|
||||||
|
- path: /data
|
||||||
|
readOnly: false
|
||||||
main:
|
main:
|
||||||
- path: /data
|
- path: /data
|
||||||
readOnly: false
|
readOnly: false
|
||||||
config:
|
|
||||||
enabled: true
|
|
||||||
type: secret
|
|
||||||
name: mautrix-whatsapp-config-secret
|
|
||||||
advancedMounts:
|
|
||||||
main:
|
|
||||||
main:
|
|
||||||
- path: /data/config.yaml
|
|
||||||
readOnly: true
|
|
||||||
mountPropagation: None
|
|
||||||
subPath: config.yaml
|
|
||||||
cloudflared-synapse:
|
cloudflared-synapse:
|
||||||
name: cloudflared-synapse
|
name: cloudflared-synapse
|
||||||
existingSecretName: matrix-synapse-cloudflared-synapse-secret
|
existingSecretName: matrix-synapse-cloudflared-synapse-secret
|
||||||
|
|||||||
Reference in New Issue
Block a user