blob: 1f6f6e8dbf900806e3e7c1289c98d0df5bddf11f [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdcSdcKb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: sdc-kb
7 name: sdc-kb
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-kb
13 template:
14 metadata:
15 labels:
16 app: sdc-kb
17 name: sdc-kb
18 annotations:
19 pod.beta.kubernetes.io/init-containers: '[
20 {
21 "args": [
22 "--container-name",
23 "sdc-es",
24 "--container-name",
25 "sdc-cs"
26 ],
27 "command": [
28 "/root/ready.py"
29 ],
30 "env": [
31 {
32 "name": "NAMESPACE",
33 "valueFrom": {
34 "fieldRef": {
35 "apiVersion": "v1",
36 "fieldPath": "metadata.namespace"
37 }
38 }
39 }
40 ],
kerenj80102842017-08-24 13:54:21 +000041 "image": "{{ .Values.image.readiness }}",
42 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040043 "name": "sdc-kb-readiness"
44 }
45 ]'
46 spec:
47 containers:
48 - env:
49 - name: ENVNAME
50 value: AUTO
51 - name: ELASTICSEARCH_URL
52 value: http://sdc-es:9200
kerenj80102842017-08-24 13:54:21 +000053 image: {{ .Values.image.sdcKibana }}
54 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 name: sdc-kb
56 volumeMounts:
57 - mountPath: /root/chef-solo/environments/
58 name: sdc-environments
59 - mountPath: /etc/localtime
60 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030061 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 - mountPath: /var/lib/jetty/logs
63 name: sdc-logs
64 ports:
65 - containerPort: 5601
66 readinessProbe:
67 tcpSocket:
68 port: 5601
69 initialDelaySeconds: 5
70 periodSeconds: 10
71 volumes:
72 - name: sdc-environments
73 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 - name: sdc-localtime
76 hostPath:
77 path: /etc/localtime
78 - name: sdc-logs
79 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000080 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030081 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000082 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030083#{{ end }}