apiVersion: apps/v1 kind: Deployment metadata: name: $DEPLOY spec: selector: matchLabels: app: $DEPLOY template: metadata: labels: app: $DEPLOY spec: containers: - name: $DEPLOY image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG envFrom: - configMapRef: name: $DEPLOY - secretRef: name: django-secrets volumeMounts: - mountPath: /app/db name: $DEPLOY resources: limits: memory: "256Mi" cpu: "250m" requests: memory: "1Mi" cpu: "1m" ports: - containerPort: 8000 volumes: - name: $DEPLOY persistentVolumeClaim: claimName: $DEPLOY