blob: d853f18f9107c800a67e2257bdac1f57c5964cd1 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-be
6 name: sdc-be
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-be
12 template:
13 metadata:
14 labels:
15 app: sdc-be
16 name: sdc-be
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "sdc-es",
23 "--container-name",
24 "sdc-cs",
25 "--container-name",
26 "sdc-kb"
27 ],
28 "command": [
29 "/root/ready.py"
30 ],
31 "env": [
32 {
33 "name": "NAMESPACE",
34 "valueFrom": {
35 "fieldRef": {
36 "apiVersion": "v1",
37 "fieldPath": "metadata.namespace"
38 }
39 }
40 }
41 ],
kerenj80102842017-08-24 13:54:21 +000042 "image": "{{ .Values.image.readiness }}",
43 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 "name": "sdc-be-readiness"
45 },
46 {
47 "args": [
48 "--container-name",
49 "dmaap"
50 ],
51 "command": [
52 "/root/ready.py"
53 ],
54 "env": [
55 {
56 "name": "NAMESPACE",
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000057 "value": "{{ .Values.nsPrefix }}-message-router"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 }
59 ],
kerenj80102842017-08-24 13:54:21 +000060 "image": "{{ .Values.image.readiness }}",
61 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 "name": "sdc-dmaap-readiness"
63 }
64 ]'
65 spec:
66 containers:
67 - env:
68 - name: ENVNAME
69 value: AUTO
70 - name: HOST_IP
71 valueFrom:
72 fieldRef:
73 fieldPath: status.podIP
kerenj80102842017-08-24 13:54:21 +000074 image: {{ .Values.image.sdcBackend }}
75 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040076 name: sdc-be
77 volumeMounts:
78 - mountPath: /usr/share/elasticsearch/data/
79 name: sdc-sdc-es-es
80 - mountPath: /root/chef-solo/environments/
81 name: sdc-environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040082 - mountPath: /etc/localtime
83 name: sdc-localtime
84 - mountPath: /var/lib/jetty/logs
85 name: sdc-logs
86 ports:
87 - containerPort: 8443
88 - containerPort: 8080
89 readinessProbe:
90 tcpSocket:
91 port: 8443
92 initialDelaySeconds: 5
93 periodSeconds: 10
94 volumes:
95 - name: sdc-sdc-es-es
96 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000097 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098 - name: sdc-environments
99 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000100 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400101 - name: sdc-localtime
102 hostPath:
103 path: /etc/localtime
104 - name: sdc-logs
105 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000106 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300107 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000108 - name: "{{ .Values.nsPrefix }}-docker-registry-key"