2 # Copyright © 2018 Amdocs, Bell Canada , ZTE
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.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
37 sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
39 serviceAccountName: msb
51 fieldPath: metadata.namespace
52 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - name: {{ include "common.name" . }}
57 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - containerPort: {{ .Values.service.internalPort }}
61 name: {{ .Values.service.name }}
62 - containerPort: {{ .Values.service.internalPortHttps }}
63 name: {{ .Values.service.name }}-https
64 # disable liveness probe when breakpoints set in debugger
65 # so K8s doesn't restart unresponsive container
66 {{- if eq .Values.liveness.enabled true }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.liveness.periodSeconds }}
75 port: {{ .Values.service.internalPort }}
76 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.readiness.periodSeconds }}
80 value: msb-consul.{{ include "common.namespace" . }}
82 value: msb-discovery.{{ include "common.namespace" . }}
84 value: {{ .Values.config.routeLabels }}
86 - mountPath: /etc/localtime
89 - name: {{ include "common.fullname" . }}-cert
90 mountPath: /usr/local/openresty/nginx/ssl/cert/cert.crt
93 - name: {{ include "common.fullname" . }}-cert
94 mountPath: /usr/local/openresty/nginx/html/cert/ca.crt
97 - mountPath: /usr/local/apiroute-works/logs
98 name: {{ include "common.fullname" . }}-logs
100 {{ include "common.resources" . | indent 12 }}
101 {{- if .Values.nodeSelector }}
103 {{ toYaml .Values.nodeSelector | indent 10 }}
105 {{- if .Values.affinity }}
107 {{ toYaml .Values.affinity | indent 10 }}
109 # side car containers
110 - name: filebeat-onap
111 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
112 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
114 - name: {{ include "common.fullname" . }}-filebeat-conf
115 mountPath: /usr/share/filebeat/filebeat.yml
116 subPath: filebeat.yml
117 - name: {{ include "common.fullname" . }}-data-filebeat
118 mountPath: /usr/share/filebeat/data
119 - name: {{ include "common.fullname" . }}-logs
120 mountPath: /var/log/onap/msb/msb-iag
121 - mountPath: /opt/ajsc/etc/config/logback.xml
122 name: {{ include "common.fullname" . }}-log-conf
125 - name: {{ include "common.fullname" . }}-cert
127 secretName: {{ include "common.release" . }}-msb-https-cert
128 - name: {{ include "common.fullname" . }}-log-conf
130 name: {{ include "common.fullname" . }}-log
131 - name: {{ include "common.fullname" . }}-filebeat-conf
133 name: {{ include "common.release" . }}-msb-filebeat-configmap
134 - name: {{ include "common.fullname" . }}-data-filebeat
136 - name: {{ include "common.fullname" . }}-logs
142 - name: "{{ include "common.namespace" . }}-docker-registry-key"