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