1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #{{ if not .Values.disableAaiElasticsearch }}
16 apiVersion: extensions/v1beta1
19 name: aai-elasticsearch
20 namespace: "{{ .Values.nsPrefix }}"
22 replicas: {{ .Values.elasticsearchReplicas }}
25 app: aai-elasticsearch
29 app: aai-elasticsearch
30 name: aai-elasticsearch
37 mkdir -p /logroot/elasticsearch/es-data
38 chmod -R 777 /logroot/elasticsearch/es-data
39 chown -R root:root /logroot
45 fieldPath: metadata.namespace
48 image: {{ .Values.image.es_bb }}
49 imagePullPolicy: {{ .Values.pullPolicy }}
52 - name: elasticsearch-data
54 hostname: aai-elasticsearch
56 - name: aai-elasticsearch
57 image: "{{ .Values.image.elasticsearchImage }}:{{ .Values.image.elasticsearchVersion }}"
58 imagePullPolicy: {{ .Values.pullPolicy }}
64 initialDelaySeconds: 5
68 mountPath: /etc/localtime
70 - name: elasticsearch-config
71 subPath: elasticsearch.yml
72 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
73 - name: elasticsearch-data
74 mountPath: /usr/share/elasticsearch/data
79 - name: elasticsearch-config
81 name: aai-elasticsearch-configmap
82 - name: elasticsearch-data
84 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/aai/elasticsearch/data
86 - name: "{{ .Values.nsPrefix }}-docker-registry-key"