35 lines
724 B
YAML
35 lines
724 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: gitlab
|
|
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 |