blob: a7334d4d08275bc179e760e89e3dc9dda36b03a1 [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040018 spec:
vasundhra98960b62017-11-22 12:43:29 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - sdc-es
25 - --container-name
26 - sdc-cs
27 env:
28 - name: NAMESPACE
29 valueFrom:
30 fieldRef:
31 apiVersion: v1
32 fieldPath: metadata.namespace
33 image: {{ .Values.image.readiness }}
34 imagePullPolicy: {{ .Values.pullPolicy }}
35 name: sdc-kb-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 containers:
37 - env:
38 - name: ENVNAME
39 value: AUTO
40 - name: ELASTICSEARCH_URL
41 value: http://sdc-es:9200
kerenj80102842017-08-24 13:54:21 +000042 image: {{ .Values.image.sdcKibana }}
43 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 name: sdc-kb
45 volumeMounts:
46 - mountPath: /root/chef-solo/environments/
47 name: sdc-environments
48 - mountPath: /etc/localtime
49 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030050 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - mountPath: /var/lib/jetty/logs
52 name: sdc-logs
53 ports:
54 - containerPort: 5601
55 readinessProbe:
56 tcpSocket:
57 port: 5601
58 initialDelaySeconds: 5
59 periodSeconds: 10
60 volumes:
61 - name: sdc-environments
62 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040064 - name: sdc-localtime
65 hostPath:
66 path: /etc/localtime
67 - name: sdc-logs
68 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000069 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030070 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000071 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra98960b62017-11-22 12:43:29 +000072#{{ end }}