From abbe9d710a327fc0314d85c565ee1512bec9da25 Mon Sep 17 00:00:00 2001 From: BorislavG Date: Tue, 12 Sep 2017 18:00:28 +0300 Subject: Fix persistent volumes for multiple onap instances Deploy multiple namespaces fails due to existing persistence volumes. "persistent-volume "appc-db" already exists" Need to change all persistent volume names to include namespace. Change-Id: I40a3048bef14f813b133ea75e2f664f669183e82 Issue-ID: OOM-294 Signed-off-by: BorislavG --- kubernetes/portal/templates/portal-pv-pvc.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kubernetes/portal') diff --git a/kubernetes/portal/templates/portal-pv-pvc.yaml b/kubernetes/portal/templates/portal-pv-pvc.yaml index 5d41e4febe..11b3dbb4e1 100644 --- a/kubernetes/portal/templates/portal-pv-pvc.yaml +++ b/kubernetes/portal/templates/portal-pv-pvc.yaml @@ -1,10 +1,10 @@ apiVersion: v1 kind: PersistentVolume metadata: - name: portal-db + name: "{{ .Values.nsPrefix }}-portal-db" namespace: "{{ .Values.nsPrefix }}-portal" labels: - name: portal-db + name: "{{ .Values.nsPrefix }}-portal-db" spec: capacity: storage: 2Gi @@ -27,4 +27,4 @@ spec: storage: 2Gi selector: matchLabels: - name: portal-db + name: "{{ .Values.nsPrefix }}-portal-db" -- cgit 1.2.3-korg