summaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/templates/clamp-pv-pvc.yaml
diff options
context:
space:
mode:
authorDusan Rozman <dusan.rozman@amdocs.com>2017-09-18 13:07:56 -0400
committerDusan Rozman <dusan.rozman@amdocs.com>2017-09-20 09:29:27 -0400
commitf776f3d5fa1a660bee24057e65625b62eedf382c (patch)
tree64eac5edfd1bb42b0b83a0ceb42bc92f8bf026a7 /kubernetes/clamp/templates/clamp-pv-pvc.yaml
parentced477af63cd1453f189dd4352e3e1dd6bf7658c (diff)
Added CLAMP containers to ONAP Kubernetes
Added the initial deployment yamls for CLAMP and updated one-click Issue-ID: OOM-12 Change-Id: I48c842d77bf95ad53dcff9ab28edf542b1cb4bf5 Signed-off-by: Dusan Rozman <dusan.rozman@amdocs.com>
Diffstat (limited to 'kubernetes/clamp/templates/clamp-pv-pvc.yaml')
-rw-r--r--kubernetes/clamp/templates/clamp-pv-pvc.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/kubernetes/clamp/templates/clamp-pv-pvc.yaml b/kubernetes/clamp/templates/clamp-pv-pvc.yaml
new file mode 100644
index 0000000000..5a82752a17
--- /dev/null
+++ b/kubernetes/clamp/templates/clamp-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: "{{ .Values.nsPrefix }}-clamp-db"
+ namespace: "{{ .Values.nsPrefix }}-clamp"
+ labels:
+ name: "{{ .Values.nsPrefix }}-clamp-db"
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/clamp/mariadb/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: clamp-db
+ namespace: "{{ .Values.nsPrefix }}-clamp"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: "{{ .Values.nsPrefix }}-clamp-db"