34 lines
787 B
YAML
34 lines
787 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ppob-backend
|
|
namespace: empatnusabangsa-staging
|
|
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: /usr/src/app/files
|
|
volumes:
|
|
- name: storage
|
|
persistentVolumeClaim:
|
|
claimName: ppob-backend-pvc
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
|