add init
This commit is contained in:
@@ -5,12 +5,25 @@ soulsync:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
strategy: Recreate
|
strategy: Recreate
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
# pod:
|
initContainers:
|
||||||
# securityContext:
|
init-copy-config:
|
||||||
# runAsUser: 1000
|
image:
|
||||||
# runAsGroup: 1000
|
repository: busybox
|
||||||
# fsGroup: 1000
|
tag: 1.37.0
|
||||||
# fsGroupChangePolicy: OnRootMismatch
|
pullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 128Mi
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -ec
|
||||||
|
- |
|
||||||
|
echo ">> Coping files ..."
|
||||||
|
ls /tmp
|
||||||
|
cp -fv /tmp/config.json /app/config/config.json
|
||||||
|
echo ">> Files in config:"
|
||||||
|
ls /app/config
|
||||||
containers:
|
containers:
|
||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
@@ -86,8 +99,8 @@ soulsync:
|
|||||||
name: soulsync-config-secret
|
name: soulsync-config-secret
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
main:
|
||||||
main:
|
init-copy-config:
|
||||||
- path: /app/config/config.json
|
- path: /tmp/config.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
subPath: config.json
|
subPath: config.json
|
||||||
@@ -101,6 +114,9 @@ soulsync:
|
|||||||
main:
|
main:
|
||||||
- path: /app/config
|
- path: /app/config
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
init-copy-config:
|
||||||
|
- path: /app/config
|
||||||
|
readOnly: false
|
||||||
database:
|
database:
|
||||||
forceRename: soulsync-database
|
forceRename: soulsync-database
|
||||||
storageClass: ceph-block
|
storageClass: ceph-block
|
||||||
@@ -134,15 +150,5 @@ soulsync:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
volsync-target-config:
|
volsync-target-config:
|
||||||
pvcTarget: soulsync-config
|
pvcTarget: soulsync-config
|
||||||
moverSecurityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
|
||||||
volsync-target-database:
|
volsync-target-database:
|
||||||
pvcTarget: soulsync-database
|
pvcTarget: soulsync-database
|
||||||
moverSecurityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
|
||||||
|
|||||||
Reference in New Issue
Block a user