blob: 67110f1e8f73cc43cf4b38d9fdb7a2144b9132ff [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
60 - mountPath: /var/lib/jetty/logs
61 name: sdc-logs
62 ports:
63 - containerPort: 5601
64 readinessProbe:
65 tcpSocket:
66 port: 5601
67 initialDelaySeconds: 5
68 periodSeconds: 10
69 volumes:
70 - name: sdc-environments
71 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000072 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 - name: sdc-localtime
74 hostPath:
75 path: /etc/localtime
76 - name: sdc-logs
77 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000078 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030079 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000080 - name: "{{ .Values.nsPrefix }}-docker-registry-key"