blob: e322ff405a9ea11c3ab33563f24ef240e5477c8a [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-es
6 name: sdc-es
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00007 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008spec:
9 selector:
10 matchLabels:
11 app: sdc-es
12 template:
13 metadata:
14 labels:
15 app: sdc-es
16 name: sdc-es
17 spec:
18 containers:
kerenj80102842017-08-24 13:54:21 +000019 - image: {{ .Values.image.sdcElasticsearch }}
20 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 name: sdc-es
22 env:
23 - name: ENVNAME
24 value: "AUTO"
25 - name: HOST_IP
26 valueFrom:
27 fieldRef:
28 fieldPath: status.podIP
29 - name: ES_HEAP_SIZE
30 value: "1024M"
31 volumeMounts:
32 - mountPath: /usr/share/elasticsearch/data/
33 name: sdc-sdc-es-es
34 - mountPath: /root/chef-solo/environments/
35 name: sdc-environments
36 - mountPath: /etc/localtime
37 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030038 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 - mountPath: /var/lib/jetty/logs
40 name: sdc-logs
41 ports:
42 - containerPort: 9200
43 - containerPort: 9300
44 readinessProbe:
45 tcpSocket:
46 port: 9200
47 initialDelaySeconds: 5
48 periodSeconds: 10
49 volumes:
50 - name: sdc-sdc-es-es
51 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000052 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 - name: sdc-environments
54 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000055 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 - name: sdc-localtime
57 hostPath:
58 path: /etc/localtime
59 - name: sdc-logs
60 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000061 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030062 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 - name: "{{ .Values.nsPrefix }}-docker-registry-key"