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 }}
29 app: {{ include "common.name" . }}
30 release: {{ .Release.Name }}
43 fieldPath: metadata.namespace
44 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 name: {{ include "common.name" . }}-readiness
48 - name: {{ include "common.name" . }}
49 image: "{{ .Values.global.loggingRepository| default .Values.loggingRepository }}/{{ .Values.image }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - containerPort: {{ .Values.service.internalPort }}
53 name: {{ .Values.service.name }}
54 - containerPort: {{ .Values.service.internalPort2 }}
55 name: {{ .Values.service.name2 }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.readiness.periodSeconds }}
61 # disable liveness probe when breakpoints set in debugger
62 # so K8s doesn't restart unresponsive container
63 {{- if eq .Values.liveness.enabled true }}
66 port: {{ .Values.service.internalPort }}
67 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.liveness.periodSeconds }}
72 - mountPath: /etc/localtime
75 - mountPath: /usr/share/logstash/config/
76 name: {{ include "common.fullname" . }}-config
77 - mountPath: /usr/share/logstash/pipeline/
78 name: {{ include "common.fullname" . }}-pipeline
80 {{ toYaml .Values.resources | indent 12 }}
81 {{- if .Values.nodeSelector }}
83 {{ toYaml .Values.nodeSelector | indent 10 }}
85 {{- if .Values.affinity }}
87 {{ toYaml .Values.affinity | indent 10 }}
93 - name: {{ include "common.fullname" . }}-config
95 name: {{ include "common.fullname" . }}
99 - name: {{ include "common.fullname" . }}-pipeline
101 name: {{ include "common.fullname" . }}
103 - key: onap-pipeline.conf
104 path: onap-pipeline.conf
106 - name: "{{ include "common.namespace" . }}-docker-registry-key"