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
49 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/.kibana
50 - --input=/config/default-mapping.json
57 fieldPath: metadata.namespace
58 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-config-map
62 - mountPath: /config/default-mapping.json
63 name: {{ include "common.fullname" . }}
64 subPath: default-mapping.json
66 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/.kibana
67 - --input=/config/default.json
74 fieldPath: metadata.namespace
75 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
76 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
77 name: {{ include "common.name" . }}-config
79 - mountPath: /config/default.json
80 name: {{ include "common.fullname" . }}
83 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/service-validations
84 - --input=/config/validationsDump.json
91 fieldPath: metadata.namespace
92 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
93 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
94 name: {{ include "common.name" . }}-config-validation
96 - mountPath: /config/validationsDump.json
97 name: {{ include "common.fullname" . }}
98 subPath: validationsDump.json
100 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/service-violations
101 - --input=/config/violationsDump.json
108 fieldPath: metadata.namespace
109 image: "{{ .Values.configRepository }}/{{ .Values.configImage }}"
110 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
111 name: {{ include "common.name" . }}-config-violation
113 - mountPath: /config/violationsDump.json
114 name: {{ include "common.fullname" . }}
115 subPath: violationsDump.json
117 - name: {{ include "common.name" . }}
118 image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}"
119 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
121 - containerPort: {{ .Values.service.internalPort }}
122 name: {{ .Values.service.name }}
126 port: {{ .Values.service.internalPort }}
127 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
128 periodSeconds: {{ .Values.readiness.periodSeconds }}
129 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
130 # disable liveness probe when breakpoints set in debugger
131 # so K8s doesn't restart unresponsive container
132 {{- if eq .Values.liveness.enabled true }}
136 port: {{ .Values.service.internalPort }}
137 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
138 periodSeconds: {{ .Values.liveness.periodSeconds }}
139 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
143 - mountPath: /etc/localtime
146 - mountPath: /usr/share/kibana/config/
147 name: {{ include "common.fullname" . }}
149 {{ include "common.resources" . | indent 12 }}
150 {{- if .Values.nodeSelector }}
152 {{ toYaml .Values.nodeSelector | indent 10 }}
154 {{- if .Values.affinity }}
156 {{ toYaml .Values.affinity | indent 10 }}
162 - name: {{ include "common.fullname" . }}
164 name: {{ include "common.fullname" . }}
170 - key: validationsDump.json
171 path: validationsDump.json
172 - key: violationsDump.json
173 path: violationsDump.json
174 - key: default-mapping.json
175 path: default-mapping.json
177 - name: "{{ include "common.namespace" . }}-docker-registry-key"