blob: 59e69dbfdce7cc6aed05d5782949e5077292d0fa [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
38 - 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:
49 - name: sdc-sdc-es-es
50 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000051 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -040052 - name: sdc-environments
53 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000054 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 - name: sdc-localtime
56 hostPath:
57 path: /etc/localtime
58 - name: sdc-logs
59 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000060 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030061 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000062 - name: "{{ .Values.nsPrefix }}-docker-registry-key"