blob: 0d77e42d975adba3fb7adfd6e3042e2de8e7f74a [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-kb
6 name: sdc-kb
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-kb
12 template:
13 metadata:
14 labels:
15 app: sdc-kb
16 name: sdc-kb
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 ],
26 "command": [
27 "/root/ready.py"
28 ],
29 "env": [
30 {
31 "name": "NAMESPACE",
32 "valueFrom": {
33 "fieldRef": {
34 "apiVersion": "v1",
35 "fieldPath": "metadata.namespace"
36 }
37 }
38 }
39 ],
kerenj80102842017-08-24 13:54:21 +000040 "image": "{{ .Values.image.readiness }}",
41 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042 "name": "sdc-kb-readiness"
43 }
44 ]'
45 spec:
46 containers:
47 - env:
48 - name: ENVNAME
49 value: AUTO
50 - name: ELASTICSEARCH_URL
51 value: http://sdc-es:9200
kerenj80102842017-08-24 13:54:21 +000052 image: {{ .Values.image.sdcKibana }}
53 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 name: sdc-kb
55 volumeMounts:
56 - mountPath: /root/chef-solo/environments/
57 name: sdc-environments
58 - mountPath: /etc/localtime
59 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030060 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 - mountPath: /var/lib/jetty/logs
62 name: sdc-logs
63 ports:
64 - containerPort: 5601
65 readinessProbe:
66 tcpSocket:
67 port: 5601
68 initialDelaySeconds: 5
69 periodSeconds: 10
70 volumes:
71 - name: sdc-environments
72 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000073 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 - name: sdc-localtime
75 hostPath:
76 path: /etc/localtime
77 - name: sdc-logs
78 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000079 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030080 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000081 - name: "{{ .Values.nsPrefix }}-docker-registry-key"