crazy stuff here

This commit is contained in:
ducoterra
2020-04-22 15:47:12 -04:00
parent 9cc9e65fac
commit 030f1fb73d
5 changed files with 34 additions and 13 deletions

29
k8s/job.yaml Normal file
View File

@@ -0,0 +1,29 @@
apiVersion: batch/v1
kind: Job
metadata:
name: pi
spec:
template:
spec:
containers:
- name: test
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
command: ["python", "manage.py", "migrate"]
volumeMounts:
- mountPath: /app/db
name: test
resources:
limits:
memory: "256Mi"
cpu: "250m"
requests:
memory: "1Mi"
cpu: "1m"
ports:
- containerPort: 8000
volumes:
- name: test
persistentVolumeClaim:
claimName: test
restartPolicy: Never
backoffLimit: 4