From f6c0a31fc10d47ff5b7299e4f3440e32ecbefcde Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Mon, 11 Apr 2022 13:00:05 +0700 Subject: [PATCH] Updated app k8s --- k8s/06-app.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/k8s/06-app.yaml b/k8s/06-app.yaml index ea4c9c0..1ef14c7 100644 --- a/k8s/06-app.yaml +++ b/k8s/06-app.yaml @@ -36,6 +36,10 @@ spec: envFrom: - secretRef: name: spring-web-dev-secret + volumeMounts: + - name: spring-web-api-data + mountPath: /opt/cubetiq/data + subPath: spring-web-api-data imagePullPolicy: Always resources: requests: @@ -43,4 +47,8 @@ spec: memory: 300Mi limits: cpu: 800m - memory: 800Mi \ No newline at end of file + memory: 800Mi + volumes: + - name: spring-web-api-data + persistentVolumeClaim: + claimName: spring-web-dev-volume