blob: aff280d8382b61ffaeba4c5d9e86374264256382 [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:
33 - mountPath: /usr/share/elasticsearch/data/
34 name: sdc-sdc-es-es
35 - mountPath: /root/chef-solo/environments/
36 name: sdc-environments
37 - mountPath: /etc/localtime
38 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030039 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 - mountPath: /var/lib/jetty/logs
41 name: sdc-logs
42 ports:
43 - containerPort: 9200
44 - containerPort: 9300
45 readinessProbe:
46 tcpSocket:
47 port: 9200
48 initialDelaySeconds: 5
49 periodSeconds: 10
50 volumes:
51 - name: sdc-sdc-es-es
52 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000053 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 - name: sdc-environments
55 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000056 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 - name: sdc-localtime
58 hostPath:
59 path: /etc/localtime
60 - name: sdc-logs
61 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000062 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030063 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000064 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030065#{{ end }}