All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/vui) (push) Successful in 4s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/vui-data-loader) (push) Successful in 5s
Prevents Service from staying in 'Processing' state by skipping ArgoCD's default health check that waits for ready endpoints.
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: django
|
|
namespace: vorgabenui
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: django
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: django
|
|
spec:
|
|
securityContext:
|
|
fsGroup: 999
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
initContainers:
|
|
- name: loader
|
|
image: git.baumann.gr/adebaumann/vui-data-loader:0.9
|
|
command: [ "sh","-c","cp -n preload/preload.sqlite3 /data/db.sqlite3; chown -R 999:999 /data; ls -la /data; sleep 10; exit 0" ]
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
containers:
|
|
- name: web
|
|
image: git.baumann.gr/adebaumann/vui:0.953-ingressfixed
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8000
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 2
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|
|
timeoutSeconds: 2
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: django-data-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: django
|
|
namespace: vorgabenui
|
|
annotations:
|
|
argocd.argoproj.io/health-check: skip
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: django
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 8000
|
|
targetPort: 8000
|
|
|