blob: 1c2a2ad57b0a8f00418315bf9fca68b902f5146c [file] [log] [blame]
Mandeep Khinda4b881972017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: elasticsearch
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: elasticsearch
10 template:
11 metadata:
12 labels:
13 app: elasticsearch
14 name: elasticsearch
15 spec:
16 hostname: elasticsearch
17 containers:
18 - name: elasticsearch
19 image: "{{ .Values.image.elasticsearchImage }}:{{ .Values.image.elasticsearchVersion }}"
20 imagePullPolicy: {{ .Values.pullPolicy }}
21 ports:
22 - containerPort: 9200
23 readinessProbe:
24 tcpSocket:
25 port: 9200
26 initialDelaySeconds: 5
27 periodSeconds: 10
28 volumeMounts:
29 - name: elasticsearch-config
30 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
31 - name: elasticsearch-data
32 mountPath: /usr/share/elasticsearch/data
33 volumes:
34 - name: elasticsearch-config
35 hostPath:
36 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/config/elasticsearch.yml"
37 - name: elasticsearch-data
38 hostPath:
39 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/es-data"
40 imagePullSecrets:
41 - name: "{{ .Values.nsPrefix }}-docker-registry-key"