1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 23:19:46 +00:00
flux/workloads/bankofparents/deploy.yml

53 lines
1.3 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bankofparents
spec:
replicas: 1
selector:
matchLabels:
app: bankofparents
template:
metadata:
labels:
app: bankofparents
spec:
containers:
- image: registry.gitlab.com/shouptech/bankofparents:202006300307
imagePullPolicy: IfNotPresent
name: bankofparents
env:
- name: GUNICORN_CMD_ARGS
value: "--access-logfile=-"
ports:
- containerPort: 8000
resources:
requests:
memory: "128Mi"
cpu: "10m"
limits:
memory: "1024Mi"
cpu: "1000m"
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 10
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 1
volumeMounts:
- name: bankofparents-app
mountPath: /app
- name: bankofparents-instance
mountPath: /instance
volumes:
- name: bankofparents-app
hostPath:
path: /opt/bankofparents/app
type: Directory
- name: bankofparents-instance
hostPath:
path: /opt/bankofparents/instance
type: Directory