blob: 122781b62ea096f97c7c8098852a402fbce73768 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableSdcSdcKb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 labels:
20 app: sdc-kb
21 name: sdc-kb
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023spec:
24 selector:
25 matchLabels:
26 app: sdc-kb
27 template:
28 metadata:
29 labels:
30 app: sdc-kb
31 name: sdc-kb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032 spec:
vasundhra98960b62017-11-22 12:43:29 +000033 initContainers:
34 - command:
35 - /root/ready.py
36 args:
37 - --container-name
38 - sdc-es
39 - --container-name
40 - sdc-cs
41 env:
42 - name: NAMESPACE
43 valueFrom:
44 fieldRef:
45 apiVersion: v1
46 fieldPath: metadata.namespace
47 image: {{ .Values.image.readiness }}
48 imagePullPolicy: {{ .Values.pullPolicy }}
49 name: sdc-kb-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 containers:
51 - env:
52 - name: ENVNAME
53 value: AUTO
54 - name: ELASTICSEARCH_URL
55 value: http://sdc-es:9200
kerenj80102842017-08-24 13:54:21 +000056 image: {{ .Values.image.sdcKibana }}
57 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 name: sdc-kb
59 volumeMounts:
60 - mountPath: /root/chef-solo/environments/
61 name: sdc-environments
62 - mountPath: /etc/localtime
63 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030064 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 - mountPath: /var/lib/jetty/logs
66 name: sdc-logs
67 ports:
68 - containerPort: 5601
69 readinessProbe:
70 tcpSocket:
71 port: 5601
72 initialDelaySeconds: 5
73 periodSeconds: 10
74 volumes:
75 - name: sdc-environments
Pramodba635b32018-01-17 12:05:14 +000076 configMap:
77 name: sdc-environments-configmap
78 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 - name: sdc-localtime
80 hostPath:
81 path: /etc/localtime
82 - name: sdc-logs
83 hostPath:
kerenj390aec92018-02-25 13:57:36 +000084 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030085 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000086 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra98960b62017-11-22 12:43:29 +000087#{{ end }}