2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
5 # Copyright (c) 2021 J. F. Lucas. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
24 name: {{ include "common.fullname" . }}
25 namespace: {{ include "common.namespace" . }}
27 app: {{ include "common.name" . }}
28 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
29 release: {{ include "common.release" . }}
30 heritage: {{ .Release.Service }}
35 app: {{ include "common.name" . }}
39 app: {{ include "common.name" . }}
40 release: {{ include "common.release" . }}
43 - name: {{ include "common.name" . }}-readiness
44 image: {{ include "repositoryGenerator.image.readiness" . }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 fieldPath: metadata.namespace
61 - name: aaf_locator_fqdn
63 {{- if .Values.service.secure.enabled }}
70 fieldPath: status.podIP
71 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 - mountPath: /opt/app/osaaf
79 {{- if .Values.service.secure.enabled }}
80 - name: {{ include "common.name" . }}
81 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
82 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
84 {{ include "common.resources" . | indent 12 }}
86 - containerPort: {{ .Values.service.secure.internalPort }}
87 # disable liveness probe when breakpoints set in debugger
88 # so K8s doesn't restart unresponsive container
89 {{- if eq .Values.liveness.enabled true }}
92 port: {{ .Values.service.secure.internalPort }}
93 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
94 periodSeconds: {{ .Values.liveness.periodSeconds }}
99 path: {{ .Values.readiness.path }}
100 port: {{ .Values.service.secure.internalPort }}
101 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
102 periodSeconds: {{ .Values.readiness.periodSeconds }}
104 - name: {{ include "common.fullname" . }}-logs
110 value: consul-server-ui.{{ include "common.namespace" . }}
113 - name: HTTPS_CERT_PATH
114 value: "/opt/tls/cert.pem"
115 - name: HTTPS_KEY_PATH
116 value: "/opt/tls/key.pem"
117 - name: {{ include "common.name" . }}-fb-onap
118 image: {{ include "repositoryGenerator.image.logging" . }}
119 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
121 - name: {{ include "common.fullname" . }}-fb-conf
122 mountPath: /usr/share/filebeat/filebeat.yml
123 subPath: filebeat.yml
124 - name: {{ include "common.fullname" . }}-data-fb
125 mountPath: /usr/share/filebeat/data
126 - name: {{ include "common.fullname" . }}-logs
127 mountPath: /var/log/onap/config-binding-service
129 {{- if .Values.service.insecure.enabled }}
130 - name: {{ include "common.name" . }}-insecure
131 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
132 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
134 {{ include "common.resources" . | indent 12 }}
136 - containerPort: {{ .Values.service.insecure.internalPort }}
137 # disable liveness probe when breakpoints set in debugger
138 # so K8s doesn't restart unresponsive container
139 {{- if eq .Values.liveness.enabled true }}
142 port: {{ .Values.service.insecure.internalPort }}
143 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
144 periodSeconds: {{ .Values.liveness.periodSeconds }}
149 path: {{ .Values.readiness.path }}
150 port: {{ .Values.service.insecure.internalPort }}
151 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
152 periodSeconds: {{ .Values.readiness.periodSeconds }}
154 - name: {{ include "common.fullname" . }}-logs-i
158 value: consul-server-ui.{{ include "common.namespace" . }}
159 - name: {{ include "common.name" . }}-fb-onap-i
160 image: {{ include "repositoryGenerator.image.logging" . }}
161 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
163 - name: {{ include "common.fullname" . }}-fb-conf
164 mountPath: /usr/share/filebeat/filebeat.yml
165 subPath: filebeat.yml
166 - name: {{ include "common.fullname" . }}-data-fb-i
167 mountPath: /usr/share/filebeat/data
168 - name: {{ include "common.fullname" . }}-logs-i
169 mountPath: /var/log/onap/config-binding-service
171 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
173 - name: {{ include "common.fullname" . }}-fb-conf
175 name: {{ include "common.release" . }}-cbs-filebeat-configmap
176 {{- if .Values.service.secure.enabled }}
177 - name: {{ include "common.fullname" . }}-data-fb
179 - name: {{ include "common.fullname" . }}-logs
184 {{- if .Values.service.insecure.enabled }}
185 - name: {{ include "common.fullname" . }}-data-fb-i
187 - name: {{ include "common.fullname" . }}-logs-i
192 - name: "{{ include "common.namespace" . }}-docker-registry-key"