mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Add init container
This commit is contained in:
@@ -33,6 +33,13 @@ spec:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: links-pvc
|
||||
initContainers:
|
||||
- name: links-init
|
||||
image: "ghcr.io/wahyd4/links:main"
|
||||
command: ["sh", "-c", "python manage.py migrate && python manage.py collectstatic --noinput"]
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
containers:
|
||||
- name: links
|
||||
image: "ghcr.io/wahyd4/links:main"
|
||||
|
||||
Reference in New Issue
Block a user