Merge branch 'development' into 'devops-staging'

add pvc

See merge request empatnusabangsa/ppob/ppob-backend!48
This commit is contained in:
Catur Bagaskara 2021-12-22 13:44:47 +00:00
commit de808d1ba3
2 changed files with 20 additions and 0 deletions

View File

@ -21,6 +21,13 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: ppob-backend-env name: ppob-backend-env
volumeMounts:
- name: storage
mountPath: /usr/src/app/files
volumes:
- name: storage
persistentVolumeClaim:
claimName: ppob-backend-pvc
imagePullSecrets: imagePullSecrets:
- name: regcred - name: regcred

13
k8s/staging/pvc.yaml Normal file
View File

@ -0,0 +1,13 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: ppob-backend-pvc
namespace : empatnusabangsa-staging
annotations:
volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi