Incorrect start-kafka.sh mounted to global-kafka
[oom.git] / kubernetes / sdc / templates / sdc-es.yaml
1 #{{ if not .Values.disableSdcSdcEs }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   labels:
6     app: sdc-es
7   name: sdc-es
8   namespace: "{{ .Values.nsPrefix }}-sdc"
9 spec:
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:
20       - image: {{ .Values.image.sdcElasticsearch }}
21         imagePullPolicy: {{ .Values.pullPolicy }}
22         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
39           readOnly: true
40         - 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:
53             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
54         - name: sdc-environments
55           hostPath:
56             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
57         - name: sdc-localtime
58           hostPath:
59             path:  /etc/localtime
60         - name:  sdc-logs
61           hostPath:
62             path:  /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
63       imagePullSecrets:
64       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
65 #{{ end }}