blob: 3f2ef332b1d19ffaa55dbc5c3dc01b25737c3435 [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:
Pramodba635b32018-01-17 12:05:14 +000019 initContainers:
20 - name: sdc-logs-init
21 image: {{ .Values.image.ubuntuInit }}
22 imagePullPolicy: {{ .Values.pullPolicy }}
23 command:
24 - /bin/bash
25 - "-c"
26 - |
27 mkdir -p /ubuntu-init/ASDC/ASDC-ES/
28 mkdir -p /ubuntu-init/ASDC/ASDC-CS/
29 mkdir -p /ubuntu-init/ASDC/ASDC-KB/
30 mkdir -p /ubuntu-init/ASDC/ASDC-BE/
31 mkdir -p /ubuntu-init/ASDC/ASDC-FE/
32 chmod -R 777 /ubuntu-init/
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 containers:
kerenj80102842017-08-24 13:54:21 +000034 - image: {{ .Values.image.sdcElasticsearch }}
35 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 name: sdc-es
37 env:
38 - name: ENVNAME
39 value: "AUTO"
40 - name: HOST_IP
41 valueFrom:
42 fieldRef:
43 fieldPath: status.podIP
44 - name: ES_HEAP_SIZE
45 value: "1024M"
46 volumeMounts:
Pramodba635b32018-01-17 12:05:14 +000047 - name: sdc-logs
48 mountPath: /ubuntu-init/
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 - mountPath: /root/chef-solo/environments/
50 name: sdc-environments
51 - mountPath: /etc/localtime
52 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030053 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 - mountPath: /var/lib/jetty/logs
55 name: sdc-logs
56 ports:
57 - containerPort: 9200
58 - containerPort: 9300
59 readinessProbe:
60 tcpSocket:
61 port: 9200
62 initialDelaySeconds: 5
63 periodSeconds: 10
64 volumes:
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - name: sdc-environments
Pramodba635b32018-01-17 12:05:14 +000066 configMap :
67 name : sdc-environments-configmap
68 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -040069 - name: sdc-localtime
70 hostPath:
71 path: /etc/localtime
72 - name: sdc-logs
73 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030075 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000076 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Munir Ahmad9d932012017-12-14 10:57:48 -050077#{{ end }}