Files
button/k8s/deploy.yaml
2020-04-25 12:34:03 -04:00

37 lines
781 B
YAML

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