blob: 680f942c52939a90fea2346ab74017e915128601 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiElasticsearch }}
Mandeep Khinda4b881972017-08-30 14:24:02 +00002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: elasticsearch
6 namespace: "{{ .Values.nsPrefix }}-aai"
7spec:
8 selector:
9 matchLabels:
10 app: elasticsearch
11 template:
12 metadata:
13 labels:
14 app: elasticsearch
15 name: elasticsearch
16 spec:
17 hostname: elasticsearch
18 containers:
19 - name: elasticsearch
20 image: "{{ .Values.image.elasticsearchImage }}:{{ .Values.image.elasticsearchVersion }}"
21 imagePullPolicy: {{ .Values.pullPolicy }}
22 ports:
23 - containerPort: 9200
24 readinessProbe:
25 tcpSocket:
26 port: 9200
27 initialDelaySeconds: 5
28 periodSeconds: 10
29 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030030 - name: localtime
31 mountPath: /etc/localtime
32 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000033 - name: elasticsearch-config
34 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
35 - name: elasticsearch-data
36 mountPath: /usr/share/elasticsearch/data
37 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030038 - name: localtime
39 hostPath:
40 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000041 - name: elasticsearch-config
42 hostPath:
43 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/config/elasticsearch.yml"
44 - name: elasticsearch-data
45 hostPath:
46 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/es-data"
47 imagePullSecrets:
48 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030049#{{ end }}