2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ include "common.release" . }}
29 heritage: {{ .Release.Service }}
34 app: {{ include "common.name" . }}
38 app: {{ include "common.name" . }}
39 release: {{ include "common.release" . }}
42 - name: {{ include "common.name" . }}-readiness
43 image: {{ include "repositoryGenerator.image.readiness" . }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 fieldPath: metadata.namespace
60 - name: aaf_locator_fqdn
62 {{- if .Values.service.secure.enabled }}
69 fieldPath: status.podIP
70 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}
71 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
74 - mountPath: /opt/app/osaaf
78 {{- if .Values.service.secure.enabled }}
79 - name: {{ include "common.name" . }}
80 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 {{ include "common.resources" . | indent 12 }}
85 - containerPort: {{ .Values.service.secure.internalPort }}
86 # disable liveness probe when breakpoints set in debugger
87 # so K8s doesn't restart unresponsive container
88 {{- if eq .Values.liveness.enabled true }}
91 port: {{ .Values.service.secure.internalPort }}
92 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
93 periodSeconds: {{ .Values.liveness.periodSeconds }}
98 path: {{ .Values.readiness.path }}
99 port: {{ .Values.service.secure.internalPort }}
100 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
101 periodSeconds: {{ .Values.readiness.periodSeconds }}
103 - name: {{ include "common.fullname" . }}-logs
109 value: consul.{{ include "common.namespace" . }}
112 - name: HTTPS_CERT_PATH
113 value: "/opt/tls/cert.pem"
114 - name: HTTPS_KEY_PATH
115 value: "/opt/tls/key.pem"
116 - name: {{ include "common.name" . }}-fb-onap
117 image: {{ include "repositoryGenerator.image.logging" . }}
118 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
120 - name: {{ include "common.fullname" . }}-fb-conf
121 mountPath: /usr/share/filebeat/filebeat.yml
122 subPath: filebeat.yml
123 - name: {{ include "common.fullname" . }}-data-fb
124 mountPath: /usr/share/filebeat/data
125 - name: {{ include "common.fullname" . }}-logs
126 mountPath: /var/log/onap/config-binding-service
128 {{- if .Values.service.insecure.enabled }}
129 - name: {{ include "common.name" . }}-insecure
130 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
131 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
133 {{ include "common.resources" . | indent 12 }}
135 - containerPort: {{ .Values.service.insecure.internalPort }}
136 # disable liveness probe when breakpoints set in debugger
137 # so K8s doesn't restart unresponsive container
138 {{- if eq .Values.liveness.enabled true }}
141 port: {{ .Values.service.insecure.internalPort }}
142 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
143 periodSeconds: {{ .Values.liveness.periodSeconds }}
148 path: {{ .Values.readiness.path }}
149 port: {{ .Values.service.insecure.internalPort }}
150 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
151 periodSeconds: {{ .Values.readiness.periodSeconds }}
153 - name: {{ include "common.fullname" . }}-logs-i
157 value: consul.{{ include "common.namespace" . }}
158 - name: {{ include "common.name" . }}-fb-onap-i
159 image: {{ include "repositoryGenerator.image.logging" . }}
160 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
162 - name: {{ include "common.fullname" . }}-fb-conf
163 mountPath: /usr/share/filebeat/filebeat.yml
164 subPath: filebeat.yml
165 - name: {{ include "common.fullname" . }}-data-fb-i
166 mountPath: /usr/share/filebeat/data
167 - name: {{ include "common.fullname" . }}-logs-i
168 mountPath: /var/log/onap/config-binding-service
171 - name: {{ include "common.fullname" . }}-fb-conf
173 name: {{ include "common.release" . }}-cbs-filebeat-configmap
174 {{- if .Values.service.secure.enabled }}
175 - name: {{ include "common.fullname" . }}-data-fb
177 - name: {{ include "common.fullname" . }}-logs
182 {{- if .Values.service.insecure.enabled }}
183 - name: {{ include "common.fullname" . }}-data-fb-i
185 - name: {{ include "common.fullname" . }}-logs-i
190 - name: "{{ include "common.namespace" . }}-docker-registry-key"