feat(deluge): init container

This commit is contained in:
nold 2022-11-27 21:07:21 +01:00
parent 8770cbd1ab
commit fa2fda8cd2
2 changed files with 24 additions and 6 deletions

View file

@ -1,7 +1,7 @@
--- ---
image: image:
repository: reg.dc/deluge repository: lib42/deluge
tag: 2.1.1 tag: 2.1.1-r6
command: [ "/usr/bin/deluge-web" ] command: [ "/usr/bin/deluge-web" ]
args: [ "-d", "-c", "/config", "-L", "info" ] args: [ "-d", "-c", "/config", "-L", "info" ]
@ -101,9 +101,15 @@ addons:
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
initContainers:
init-config:
image: lib42/deluge:2.1.1-r6
command: ["/bin/sh"]
args: [ "-c", "[ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf"]
additionalContainers: additionalContainers:
deluge-daemon: deluge-daemon:
image: reg.dc/deluge:2.1.1 image: lib42/deluge:2.1.1-r6
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /config mountPath: /config

View file

@ -1,11 +1,14 @@
--- ---
image: image:
repository: reg.dc/deluge repository: lib42/deluge
tag: 2.1.1 tag: 2.1.1-r6
command: [ "/usr/bin/deluge-web" ] command: [ "/usr/bin/deluge-web" ]
args: [ "-d", "-c", "/config", "-L", "info" ] args: [ "-d", "-c", "/config", "-L", "info" ]
podSecurityContext:
fsGroup: 1000
securityContext: securityContext:
runAsNonRoot: true runAsNonRoot: true
privileged: false privileged: false
@ -101,9 +104,18 @@ addons:
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
initContainers:
init-config:
image: lib42/deluge:2.1.1-r6
command: ["/bin/sh"]
args: [ "-c", "([ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf) || true"]
volumeMounts:
- name: config
mountPath: /config
additionalContainers: additionalContainers:
deluge-daemon: deluge-daemon:
image: reg.dc/deluge:2.1.1 image: lib42/deluge:2.1.1-r6
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /config mountPath: /config