blob: 3ea9504462c1cabd92e3e1897ba89e5d58b0d8b5 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMessageRouterGlobalKafka }}
BorislavG66a9a5c2017-09-06 15:12:46 +030016apiVersion: v1
17kind: PersistentVolume
18metadata:
BorislavGabbe9d72017-09-12 18:00:28 +030019 name: "{{ .Values.nsPrefix }}-message-router-kafka"
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
BorislavG66a9a5c2017-09-06 15:12:46 +030021 labels:
BorislavGabbe9d72017-09-12 18:00:28 +030022 name: "{{ .Values.nsPrefix }}-message-router-kafka"
BorislavG66a9a5c2017-09-06 15:12:46 +030023spec:
24 capacity:
25 storage: 2Gi
26 accessModes:
27 - ReadWriteMany
28 persistentVolumeReclaimPolicy: Retain
29 hostPath:
kerenje2e63502018-02-25 12:22:53 +000030 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-kafka/
BorislavG66a9a5c2017-09-06 15:12:46 +030031---
32kind: PersistentVolumeClaim
33apiVersion: v1
34metadata:
35 name: message-router-kafka
BorislavG8bfc6cf2018-02-27 15:04:26 +000036 namespace: "{{ .Values.nsPrefix }}"
BorislavG66a9a5c2017-09-06 15:12:46 +030037spec:
38 accessModes:
39 - ReadWriteMany
40 resources:
41 requests:
42 storage: 2Gi
43 selector:
44 matchLabels:
BorislavGabbe9d72017-09-12 18:00:28 +030045 name: "{{ .Values.nsPrefix }}-message-router-kafka"
yurynfcef9942017-10-26 17:10:50 +030046#{{ end }}
47#{{ if not .Values.disableMessageRouterZookeeper }}
BorislavG66a9a5c2017-09-06 15:12:46 +030048---
49apiVersion: v1
50kind: PersistentVolume
51metadata:
BorislavGabbe9d72017-09-12 18:00:28 +030052 name: "{{ .Values.nsPrefix }}-message-router-zookeeper"
BorislavG8bfc6cf2018-02-27 15:04:26 +000053 namespace: "{{ .Values.nsPrefix }}"
BorislavG66a9a5c2017-09-06 15:12:46 +030054 labels:
BorislavGabbe9d72017-09-12 18:00:28 +030055 name: "{{ .Values.nsPrefix }}-message-router-zookeeper"
BorislavG66a9a5c2017-09-06 15:12:46 +030056spec:
57 capacity:
58 storage: 2Gi
59 accessModes:
60 - ReadWriteMany
61 persistentVolumeReclaimPolicy: Retain
62 hostPath:
kerenje2e63502018-02-25 12:22:53 +000063 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-zookeeper
BorislavG66a9a5c2017-09-06 15:12:46 +030064---
65kind: PersistentVolumeClaim
66apiVersion: v1
67metadata:
68 name: message-router-zookeeper
BorislavG8bfc6cf2018-02-27 15:04:26 +000069 namespace: "{{ .Values.nsPrefix }}"
BorislavG66a9a5c2017-09-06 15:12:46 +030070spec:
71 accessModes:
72 - ReadWriteMany
73 resources:
74 requests:
75 storage: 2Gi
76 selector:
77 matchLabels:
BorislavGabbe9d72017-09-12 18:00:28 +030078 name: "{{ .Values.nsPrefix }}-message-router-zookeeper"
kerenje2e63502018-02-25 12:22:53 +000079#{{ end }}