blob: 90fc6f2a21452009895c64a432376419bede4320 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
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
Pramodba635b32018-01-17 12:05:14 +000062 configMap:
63 name: sdc-environments-configmap
64 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - name: sdc-localtime
66 hostPath:
67 path: /etc/localtime
68 - name: sdc-logs
69 hostPath:
kerenj390aec92018-02-25 13:57:36 +000070 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030071 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000072 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra98960b62017-11-22 12:43:29 +000073#{{ end }}