blob: 4d8db678e9f79ce934aa3eac5dcf6eaf5c56e5c4 [file] [log] [blame]
Mike Elliott38692ad2018-03-22 11:26:49 -04001{{/*
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00002# Copyright © 2017 Amdocs, Bell Canada
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Mike Elliott38692ad2018-03-22 11:26:49 -040015*/}}
vaibhav_16dece04b2fe2018-03-22 09:07:12 +000016
yurynfcef9942017-10-26 17:10:50 +030017#{{ if not .Values.disableVidVidMariadb }}
BorislavG66a9a5c2017-09-06 15:12:46 +030018apiVersion: v1
19kind: PersistentVolume
20metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000021 name: "{{ .Values.nsPrefix }}-vid"
22 namespace: "{{ .Values.nsPrefix }}"
BorislavG66a9a5c2017-09-06 15:12:46 +030023 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000024 name: "{{ .Values.nsPrefix }}-vid"
BorislavG66a9a5c2017-09-06 15:12:46 +030025spec:
26 capacity:
27 storage: 2Gi
28 accessModes:
29 - ReadWriteMany
30 persistentVolumeReclaimPolicy: Retain
31 hostPath:
kerenjd6d4dc52018-02-08 10:45:09 +020032 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/vid/mariadb/data
BorislavG66a9a5c2017-09-06 15:12:46 +030033---
34kind: PersistentVolumeClaim
35apiVersion: v1
36metadata:
37 name: vid-db
BorislavG8bfc6cf2018-02-27 15:04:26 +000038 namespace: "{{ .Values.nsPrefix }}"
BorislavG66a9a5c2017-09-06 15:12:46 +030039spec:
40 accessModes:
41 - ReadWriteMany
42 resources:
43 requests:
44 storage: 2Gi
45 selector:
46 matchLabels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000047 name: "{{ .Values.nsPrefix }}-vid"
kerenjd6d4dc52018-02-08 10:45:09 +020048#{{ end }}