2 # Copyright © 2017 Amdocs, Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 apiVersion: extensions/v1beta1
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ include "common.release" . }}
46 fieldPath: metadata.namespace
47 image: {{ include "repositoryGenerator.image.readiness" . }}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 name: {{ include "common.name" . }}-readiness
51 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/.kibana
52 - --input=/config/default-mapping.json
59 fieldPath: metadata.namespace
60 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.configImage }}
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 name: {{ include "common.name" . }}-config-map
64 - mountPath: /config/default-mapping.json
65 name: {{ include "common.fullname" . }}
66 subPath: default-mapping.json
68 - --output=http://{{.Values.config.elasticsearchServiceName}}.{{ include "common.namespace" . }}:{{.Values.config.elasticsearchPort}}/.kibana
69 - --input=/config/default.json
76 fieldPath: metadata.namespace
77 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.configImage }}
78 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 name: {{ include "common.name" . }}-config
81 - mountPath: /config/default.json
82 name: {{ include "common.fullname" . }}
85 - name: {{ include "common.name" . }}
86 image: {{ include "repositoryGenerator.elasticRepository" . }}/{{ .Values.image }}
87 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
88 command: ["/bin/bash"]
89 args: ["-c", "/opt/app/bin/kibana_start.sh"]
91 - containerPort: {{ .Values.service.internalPort }}
92 name: {{ .Values.service.name }}
97 port: {{ .Values.service.internalPort }}
98 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
99 periodSeconds: {{ .Values.readiness.periodSeconds }}
100 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
101 # disable liveness probe when breakpoints set in debugger
102 # so K8s doesn't restart unresponsive container
103 {{- if eq .Values.liveness.enabled true }}
108 port: {{ .Values.service.internalPort }}
109 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
110 periodSeconds: {{ .Values.liveness.periodSeconds }}
111 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
115 - mountPath: /etc/localtime
118 - mountPath: /usr/share/kibana/config
119 name: {{ include "common.fullname" . }}
120 - mountPath: /opt/app/auth
121 name: {{ include "common.fullname" . }}-auth
122 - mountPath: /opt/app/bin
123 name: {{ include "common.fullname" . }}-bin
125 {{ include "common.resources" . | indent 12 }}
126 {{- if .Values.nodeSelector }}
128 {{ toYaml .Values.nodeSelector | indent 10 }}
130 {{- if .Values.affinity }}
132 {{ toYaml .Values.affinity | indent 10 }}
138 - name: {{ include "common.fullname" . }}
140 name: {{ include "common.fullname" . }}
146 - key: default-mapping.json
147 path: default-mapping.json
148 - name: {{ include "common.fullname" . }}-auth
150 name: {{ include "common.fullname" . }}-auth
152 - name: {{ include "common.fullname" . }}-bin
154 name: {{ include "common.fullname" . }}-bin
157 - name: "{{ include "common.namespace" . }}-docker-registry-key"