blob: 1d2ba4805b97076696ac294aa0a46edd9e2e1856 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdcSdcEs }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: sdc-es
7 name: sdc-es
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: sdc-es
13 template:
14 metadata:
15 labels:
16 app: sdc-es
17 name: sdc-es
18 spec:
19 containers:
kerenj80102842017-08-24 13:54:21 +000020 - image: {{ .Values.image.sdcElasticsearch }}
21 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040022 name: sdc-es
23 env:
24 - name: ENVNAME
25 value: "AUTO"
26 - name: HOST_IP
27 valueFrom:
28 fieldRef:
29 fieldPath: status.podIP
30 - name: ES_HEAP_SIZE
31 value: "1024M"
32 volumeMounts:
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 - mountPath: /root/chef-solo/environments/
34 name: sdc-environments
35 - mountPath: /etc/localtime
36 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030037 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 - mountPath: /var/lib/jetty/logs
39 name: sdc-logs
40 ports:
41 - containerPort: 9200
42 - containerPort: 9300
43 readinessProbe:
44 tcpSocket:
45 port: 9200
46 initialDelaySeconds: 5
47 periodSeconds: 10
48 volumes:
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 - name: sdc-environments
50 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000051 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040052 - name: sdc-localtime
53 hostPath:
54 path: /etc/localtime
55 - name: sdc-logs
56 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000057 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030058 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000059 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Munir Ahmad9d932012017-12-14 10:57:48 -050060#{{ end }}