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.disableLogElasticsearch }} |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 18 | apiVersion: v1 |
| 19 | kind: PersistentVolume |
| 20 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 21 | name: {{ .Values.nsPrefix }}-elasticsearch-db |
| 22 | namespace: "{{ .Values.nsPrefix }}" |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 23 | labels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 24 | name: {{ .Values.nsPrefix }}-elasticsearch-db |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 25 | spec: |
| 26 | capacity: |
| 27 | storage: 2Gi |
| 28 | accessModes: |
| 29 | - ReadWriteMany |
| 30 | persistentVolumeReclaimPolicy: Retain |
| 31 | hostPath: |
kerenj | 81c063d | 2018-02-25 09:10:45 +0000 | [diff] [blame] | 32 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/log/elasticsearch/data |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 33 | --- |
| 34 | kind: PersistentVolumeClaim |
| 35 | apiVersion: v1 |
| 36 | metadata: |
| 37 | name: elasticsearch-db |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 38 | namespace: "{{ .Values.nsPrefix }}" |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 39 | spec: |
| 40 | accessModes: |
| 41 | - ReadWriteMany |
| 42 | resources: |
| 43 | requests: |
| 44 | storage: 2Gi |
| 45 | selector: |
| 46 | matchLabels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 47 | name: {{ .Values.nsPrefix }}-elasticsearch-db |
kerenj | 81c063d | 2018-02-25 09:10:45 +0000 | [diff] [blame] | 48 | #{{ end }} |