mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 21:09:58 +00:00
init container to poststart
This commit is contained in:
@@ -54,9 +54,16 @@ spec:
|
|||||||
- containerPort: 51820
|
- containerPort: 51820
|
||||||
name: tun
|
name: tun
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
lifecycle:
|
||||||
|
postStart:
|
||||||
|
exec:
|
||||||
|
command: ['cp', '/wireguard-secret/deluge.conf', '/config/wg_confs/wg0.conf']
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: wireguard-config
|
- name: wireguard-config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
- name: wireguard-secret
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /wireguard-secret
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-media-filesystem
|
- name: init-media-filesystem
|
||||||
image: busybox
|
image: busybox
|
||||||
@@ -70,20 +77,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
- name: init-wireguard-conf
|
|
||||||
image: busybox
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
mkdir -p -v /config/wg_confs
|
|
||||||
cp /wireguard-secret/deluge.conf /config/wg_confs/wg0.conf
|
|
||||||
volumeMounts:
|
|
||||||
- name: wireguard-config
|
|
||||||
mountPath: /config
|
|
||||||
- name: wireguard-secret
|
|
||||||
readOnly: true
|
|
||||||
mountPath: /wireguard-secret
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: deluge-config
|
- name: deluge-config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user