X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fappc%2Ftemplates%2Fappc-pv-pvc.yaml;h=59bf7859e53443710efb5fa1c32d7aa039a1129a;hb=7aa968bb23b924f714a6bfe3436a3ec438bff69a;hp=51392f7c305bad1a89de20ea45d52d408d828331;hpb=66a9a5c4a387974e81b210fc9fa0024239582027;p=oom.git diff --git a/kubernetes/appc/templates/appc-pv-pvc.yaml b/kubernetes/appc/templates/appc-pv-pvc.yaml index 51392f7c30..59bf7859e5 100644 --- a/kubernetes/appc/templates/appc-pv-pvc.yaml +++ b/kubernetes/appc/templates/appc-pv-pvc.yaml @@ -1,10 +1,25 @@ +# Copyright © 2017 Amdocs, Bell Canada +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#{{ if not .Values.disableAppcAppcDbhost }} apiVersion: v1 kind: PersistentVolume metadata: - name: appc-db - namespace: "{{ .Values.nsPrefix }}-appc" + name: "{{ .Values.nsPrefix }}-appc" + namespace: "{{ .Values.nsPrefix }}" labels: - name: appc-db + name: "{{ .Values.nsPrefix }}-appc" spec: capacity: storage: 2Gi @@ -12,13 +27,13 @@ spec: - ReadWriteMany persistentVolumeReclaimPolicy: Retain hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/data + path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/appc/data --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: appc-db - namespace: "{{ .Values.nsPrefix }}-appc" + namespace: "{{ .Values.nsPrefix }}" spec: accessModes: - ReadWriteMany @@ -27,4 +42,5 @@ spec: storage: 2Gi selector: matchLabels: - name: appc-db + name: "{{ .Values.nsPrefix }}-appc" +#{{ end }}