add deployment
This commit is contained in:
33
k8s/production/deployment.yaml
Normal file
33
k8s/production/deployment.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user