1 # Copyright © 2017 Amdocs, Bell Canada
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
50 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/.kibana
51 - --input=/config/default-mapping.json
58 fieldPath: metadata.namespace
59 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 name: {{ include "common.name" . }}-config-map
63 - mountPath: /config/default-mapping.json
64 name: {{ include "common.fullname" . }}
65 subPath: default-mapping.json
67 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/.kibana
68 - --input=/config/default.json
75 fieldPath: metadata.namespace
76 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
77 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
78 name: {{ include "common.name" . }}-config
80 - mountPath: /config/default.json
81 name: {{ include "common.fullname" . }}
84 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/service-validations
85 - --input=/config/validationsDump.json
92 fieldPath: metadata.namespace
93 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
94 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
95 name: {{ include "common.name" . }}-config-validation
97 - mountPath: /config/validationsDump.json
98 name: {{ include "common.fullname" . }}
99 subPath: validationsDump.json
101 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/service-violations
102 - --input=/config/violationsDump.json
109 fieldPath: metadata.namespace
110 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
111 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
112 name: {{ include "common.name" . }}-config-violation
114 - mountPath: /config/violationsDump.json
115 name: {{ include "common.fullname" . }}
116 subPath: violationsDump.json
118 - name: {{ include "common.name" . }}
119 image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}"
120 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
122 - containerPort: {{ .Values.service.internalPort }}
123 name: {{ .Values.service.name }}
127 port: {{ .Values.service.internalPort }}
128 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
129 periodSeconds: {{ .Values.readiness.periodSeconds }}
130 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
131 # disable liveness probe when breakpoints set in debugger
132 # so K8s doesn't restart unresponsive container
133 {{- if eq .Values.liveness.enabled true }}
137 port: {{ .Values.service.internalPort }}
138 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
139 periodSeconds: {{ .Values.liveness.periodSeconds }}
140 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
144 - mountPath: /etc/localtime
147 - mountPath: /usr/share/kibana/config/
148 name: {{ include "common.fullname" . }}
150 {{ include "common.resources" . | indent 12 }}
151 {{- if .Values.nodeSelector }}
153 {{ toYaml .Values.nodeSelector | indent 10 }}
155 {{- if .Values.affinity }}
157 {{ toYaml .Values.affinity | indent 10 }}
163 - name: {{ include "common.fullname" . }}
165 name: {{ include "common.fullname" . }}
171 - key: validationsDump.json
172 path: validationsDump.json
173 - key: violationsDump.json
174 path: violationsDump.json
175 - key: default-mapping.json
176 path: default-mapping.json
178 - name: "{{ include "common.namespace" . }}-docker-registry-key"