Merge "Script_version addiition in robot config"
[oom.git] / kubernetes / log / templates / log-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.disableLogElasticsearch }}
18 apiVersion: v1
19 kind: PersistentVolume
20 metadata:
21   name: {{ .Values.nsPrefix }}-elasticsearch-db
22   namespace: "{{ .Values.nsPrefix }}"
23   labels:
24     name: {{ .Values.nsPrefix }}-elasticsearch-db
25 spec:
26   capacity:
27     storage: 2Gi
28   accessModes:
29     - ReadWriteMany
30   persistentVolumeReclaimPolicy: Retain
31   hostPath:
32     path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/log/elasticsearch/data
33 ---
34 kind: PersistentVolumeClaim
35 apiVersion: v1
36 metadata:
37   name: elasticsearch-db
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 }}-elasticsearch-db
48 #{{ end }}