Mike Elliott | 38692ad | 2018-03-22 11:26:49 -0400 | [diff] [blame] | 1 | {{/* |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 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. |
Mike Elliott | 38692ad | 2018-03-22 11:26:49 -0400 | [diff] [blame] | 15 | */}} |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 16 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 17 | #{{ if not .Values.disableMessageRouterGlobalKafka }} |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 18 | apiVersion: v1 |
| 19 | kind: PersistentVolume |
| 20 | metadata: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 21 | name: "{{ .Values.nsPrefix }}-message-router-kafka" |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | namespace: "{{ .Values.nsPrefix }}" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 23 | labels: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 24 | name: "{{ .Values.nsPrefix }}-message-router-kafka" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 25 | spec: |
| 26 | capacity: |
| 27 | storage: 2Gi |
| 28 | accessModes: |
| 29 | - ReadWriteMany |
| 30 | persistentVolumeReclaimPolicy: Retain |
| 31 | hostPath: |
kerenj | e2e6350 | 2018-02-25 12:22:53 +0000 | [diff] [blame] | 32 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-kafka/ |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 33 | --- |
| 34 | kind: PersistentVolumeClaim |
| 35 | apiVersion: v1 |
| 36 | metadata: |
| 37 | name: message-router-kafka |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 38 | namespace: "{{ .Values.nsPrefix }}" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 39 | spec: |
| 40 | accessModes: |
| 41 | - ReadWriteMany |
| 42 | resources: |
| 43 | requests: |
| 44 | storage: 2Gi |
| 45 | selector: |
| 46 | matchLabels: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 47 | name: "{{ .Values.nsPrefix }}-message-router-kafka" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 48 | #{{ end }} |
| 49 | #{{ if not .Values.disableMessageRouterZookeeper }} |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 50 | --- |
| 51 | apiVersion: v1 |
| 52 | kind: PersistentVolume |
| 53 | metadata: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 54 | name: "{{ .Values.nsPrefix }}-message-router-zookeeper" |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 55 | namespace: "{{ .Values.nsPrefix }}" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 56 | labels: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 57 | name: "{{ .Values.nsPrefix }}-message-router-zookeeper" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 58 | spec: |
| 59 | capacity: |
| 60 | storage: 2Gi |
| 61 | accessModes: |
| 62 | - ReadWriteMany |
| 63 | persistentVolumeReclaimPolicy: Retain |
| 64 | hostPath: |
kerenj | e2e6350 | 2018-02-25 12:22:53 +0000 | [diff] [blame] | 65 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-zookeeper |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 66 | --- |
| 67 | kind: PersistentVolumeClaim |
| 68 | apiVersion: v1 |
| 69 | metadata: |
| 70 | name: message-router-zookeeper |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 71 | namespace: "{{ .Values.nsPrefix }}" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 72 | spec: |
| 73 | accessModes: |
| 74 | - ReadWriteMany |
| 75 | resources: |
| 76 | requests: |
| 77 | storage: 2Gi |
| 78 | selector: |
| 79 | matchLabels: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 80 | name: "{{ .Values.nsPrefix }}-message-router-zookeeper" |
kerenj | e2e6350 | 2018-02-25 12:22:53 +0000 | [diff] [blame] | 81 | #{{ end }} |