add deployment

This commit is contained in:
2022-01-06 19:19:11 +07:00
parent 32ad55c5b8
commit 892436e41b
6 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ppob-backend
namespace: empatnusabangsa-production
spec:
selector:
matchLabels:
app: ppob-backend
replicas: 1
template:
metadata:
labels:
app: ppob-backend
spec:
containers:
- name: ppob-backend
image: registry-harbor.app.bangun-kreatif.com/empatnusabangsa/ppob-backend:<VERSION>
ports:
- containerPort: 5000
envFrom:
- secretRef:
name: ppob-backend-env
volumeMounts:
- name: storage
mountPath: /home/node/files
volumes:
- name: storage
persistentVolumeClaim:
claimName: ppob-backend-pvc
imagePullSecrets:
- name: regcred