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:v0.1 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