mirror of
https://github.com/nold360/hive-apps
synced 2024-12-22 21:41:13 +00:00
feat(deluge): init container
This commit is contained in:
parent
8770cbd1ab
commit
fa2fda8cd2
2 changed files with 24 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue