mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
initcontainer setup media pvc
This commit is contained in:
@@ -50,6 +50,13 @@ spec:
|
|||||||
name: data
|
name: data
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: config
|
||||||
|
initContainers:
|
||||||
|
- name: init-media-filesystem
|
||||||
|
image: busybox
|
||||||
|
command: ['sh', '-c', 'mkdir -p /data/{downloads,media}/{movies,music,books,tv}']
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: data
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user