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:
repository: reg.dc/deluge
tag: 2.1.1
repository: lib42/deluge
tag: 2.1.1-r6
command: [ "/usr/bin/deluge-web" ]
args: [ "-d", "-c", "/config", "-L", "info" ]
@ -101,9 +101,15 @@ addons:
initialDelaySeconds: 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:
deluge-daemon:
image: reg.dc/deluge:2.1.1
image: lib42/deluge:2.1.1-r6
volumeMounts:
- name: config
mountPath: /config

View file

@ -1,11 +1,14 @@
---
image:
repository: reg.dc/deluge
tag: 2.1.1
repository: lib42/deluge
tag: 2.1.1-r6
command: [ "/usr/bin/deluge-web" ]
args: [ "-d", "-c", "/config", "-L", "info" ]
podSecurityContext:
fsGroup: 1000
securityContext:
runAsNonRoot: true
privileged: false
@ -101,9 +104,18 @@ addons:
initialDelaySeconds: 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:
deluge-daemon:
image: reg.dc/deluge:2.1.1
image: lib42/deluge:2.1.1-r6
volumeMounts:
- name: config
mountPath: /config