blob: 20bcbb15c19f85676177ee6322d8dd21fc0b316f [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.disableLogElasticsearch }}
Itay Hasside2da86d2017-08-24 12:54:42 +000018apiVersion: v1
19kind: PersistentVolume
20metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000021 name: {{ .Values.nsPrefix }}-elasticsearch-db
22 namespace: "{{ .Values.nsPrefix }}"
Itay Hasside2da86d2017-08-24 12:54:42 +000023 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000024 name: {{ .Values.nsPrefix }}-elasticsearch-db
Itay Hasside2da86d2017-08-24 12:54:42 +000025spec:
26 capacity:
27 storage: 2Gi
28 accessModes:
29 - ReadWriteMany
30 persistentVolumeReclaimPolicy: Retain
31 hostPath:
kerenj81c063d2018-02-25 09:10:45 +000032 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/log/elasticsearch/data
Itay Hasside2da86d2017-08-24 12:54:42 +000033---
34kind: PersistentVolumeClaim
35apiVersion: v1
36metadata:
37 name: elasticsearch-db
BorislavG8bfc6cf2018-02-27 15:04:26 +000038 namespace: "{{ .Values.nsPrefix }}"
Itay Hasside2da86d2017-08-24 12:54:42 +000039spec:
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 }}-elasticsearch-db
kerenj81c063d2018-02-25 09:10:45 +000048#{{ end }}