Add chart for redis cluster
[oom.git] / kubernetes / message-router / templates / message-router-pv-pvc.yaml
1 {{/*
2 # 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.
15 */}}
16
17 #{{ if not .Values.disableMessageRouterGlobalKafka }}
18 apiVersion: v1
19 kind: PersistentVolume
20 metadata:
21   name: "{{ .Values.nsPrefix }}-message-router-kafka"
22   namespace: "{{ .Values.nsPrefix }}"
23   labels:
24     name: "{{ .Values.nsPrefix }}-message-router-kafka"
25 spec:
26   capacity:
27     storage: 2Gi
28   accessModes:
29     - ReadWriteMany
30   persistentVolumeReclaimPolicy: Retain
31   hostPath:
32     path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-kafka/
33 ---
34 kind: PersistentVolumeClaim
35 apiVersion: v1
36 metadata:
37   name: message-router-kafka
38   namespace: "{{ .Values.nsPrefix }}"
39 spec:
40   accessModes:
41     - ReadWriteMany
42   resources:
43     requests:
44       storage: 2Gi
45   selector:
46     matchLabels:
47       name: "{{ .Values.nsPrefix }}-message-router-kafka"
48 #{{ end }}
49 #{{ if not .Values.disableMessageRouterZookeeper }}
50 ---
51 apiVersion: v1
52 kind: PersistentVolume
53 metadata:
54   name: "{{ .Values.nsPrefix }}-message-router-zookeeper"
55   namespace: "{{ .Values.nsPrefix }}"
56   labels:
57     name: "{{ .Values.nsPrefix }}-message-router-zookeeper"
58 spec:
59   capacity:
60     storage: 2Gi
61   accessModes:
62     - ReadWriteMany
63   persistentVolumeReclaimPolicy: Retain
64   hostPath:
65     path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-zookeeper
66 ---
67 kind: PersistentVolumeClaim
68 apiVersion: v1
69 metadata:
70   name: message-router-zookeeper
71   namespace: "{{ .Values.nsPrefix }}"
72 spec:
73   accessModes:
74     - ReadWriteMany
75   resources:
76     requests:
77       storage: 2Gi
78   selector:
79     matchLabels:
80       name: "{{ .Values.nsPrefix }}-message-router-zookeeper"
81 #{{ end }}