new standard deploy templates

This commit is contained in:
ducoterra
2020-04-25 11:15:23 -04:00
parent 8404d43222
commit 7868867908
7 changed files with 31 additions and 24 deletions

View File

@@ -1,22 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
name: $DEPLOY
spec:
selector:
matchLabels:
app: test
app: $DEPLOY
template:
metadata:
labels:
app: test
app: $DEPLOY
spec:
containers:
- name: test
- name: $DEPLOY
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
envFrom:
- configMapRef:
name: gitlab
volumeMounts:
- mountPath: /app/db
name: test
name: $DEPLOY
resources:
limits:
memory: "256Mi"
@@ -27,6 +30,6 @@ spec:
ports:
- containerPort: 8000
volumes:
- name: test
- name: $DEPLOY
persistentVolumeClaim:
claimName: test
claimName: $DEPLOY