diff options
Diffstat (limited to 'kubernetes/appc/templates')
-rw-r--r-- | kubernetes/appc/templates/appc-pv-pvc.yaml | 30 | ||||
-rw-r--r-- | kubernetes/appc/templates/db-deployment.yaml | 4 |
2 files changed, 32 insertions, 2 deletions
diff --git a/kubernetes/appc/templates/appc-pv-pvc.yaml b/kubernetes/appc/templates/appc-pv-pvc.yaml new file mode 100644 index 0000000000..51392f7c30 --- /dev/null +++ b/kubernetes/appc/templates/appc-pv-pvc.yaml @@ -0,0 +1,30 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: appc-db + namespace: "{{ .Values.nsPrefix }}-appc" + labels: + name: appc-db +spec: + capacity: + storage: 2Gi + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + hostPath: + path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/data +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: appc-db + namespace: "{{ .Values.nsPrefix }}-appc" +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 2Gi + selector: + matchLabels: + name: appc-db diff --git a/kubernetes/appc/templates/db-deployment.yaml b/kubernetes/appc/templates/db-deployment.yaml index 239d76f083..542f8f4d42 100644 --- a/kubernetes/appc/templates/db-deployment.yaml +++ b/kubernetes/appc/templates/db-deployment.yaml @@ -34,7 +34,7 @@ spec: restartPolicy: Always volumes: - name: appc-data - hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/data + persistentVolumeClaim: + claimName: appc-db imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" |