1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
32 app: {{ include "common.name" . }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
40 - name: {{ include "common.name" . }}-readiness
41 image: {{ include "common.repository" . }}/{{ .Values.global.readinessImage }}
42 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 fieldPath: metadata.namespace
58 - name: aaf_locator_fqdn
60 {{- if .Values.service.secure.enabled }}
67 fieldPath: status.podIP
68 image: {{ .Values.global.tlsRepository }}/{{ .Values.global.tlsImage }}
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 - mountPath: /opt/app/osaaf
76 {{- if .Values.service.secure.enabled }}
77 - name: {{ include "common.name" . }}
78 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
79 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 {{ include "common.resources" . | indent 12 }}
83 - containerPort: {{ .Values.service.secure.internalPort }}
84 # disable liveness probe when breakpoints set in debugger
85 # so K8s doesn't restart unresponsive container
86 {{- if eq .Values.liveness.enabled true }}
89 port: {{ .Values.service.secure.internalPort }}
90 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
91 periodSeconds: {{ .Values.liveness.periodSeconds }}
96 path: {{ .Values.readiness.path }}
97 port: {{ .Values.service.secure.internalPort }}
98 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
99 periodSeconds: {{ .Values.readiness.periodSeconds }}
101 - name: {{ include "common.fullname" . }}-logs
107 value: consul.{{ include "common.namespace" . }}
110 - name: HTTPS_CERT_PATH
111 value: "/opt/tls/cert.pem"
112 - name: HTTPS_KEY_PATH
113 value: "/opt/tls/key.pem"
114 - name: {{ include "common.name" . }}-fb-onap
115 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
116 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
118 - name: {{ include "common.fullname" . }}-fb-conf
119 mountPath: /usr/share/filebeat/filebeat.yml
120 subPath: filebeat.yml
121 - name: {{ include "common.fullname" . }}-data-fb
122 mountPath: /usr/share/filebeat/data
123 - name: {{ include "common.fullname" . }}-logs
124 mountPath: /var/log/onap/config-binding-service
126 {{- if .Values.service.insecure.enabled }}
127 - name: {{ include "common.name" . }}-insecure
128 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
129 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
131 {{ include "common.resources" . | indent 12 }}
133 - containerPort: {{ .Values.service.insecure.internalPort }}
134 # disable liveness probe when breakpoints set in debugger
135 # so K8s doesn't restart unresponsive container
136 {{- if eq .Values.liveness.enabled true }}
139 port: {{ .Values.service.insecure.internalPort }}
140 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
141 periodSeconds: {{ .Values.liveness.periodSeconds }}
146 path: {{ .Values.readiness.path }}
147 port: {{ .Values.service.insecure.internalPort }}
148 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
149 periodSeconds: {{ .Values.readiness.periodSeconds }}
151 - name: {{ include "common.fullname" . }}-logs-i
155 value: consul.{{ include "common.namespace" . }}
156 - name: {{ include "common.name" . }}-fb-onap-i
157 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
158 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
160 - name: {{ include "common.fullname" . }}-fb-conf
161 mountPath: /usr/share/filebeat/filebeat.yml
162 subPath: filebeat.yml
163 - name: {{ include "common.fullname" . }}-data-fb-i
164 mountPath: /usr/share/filebeat/data
165 - name: {{ include "common.fullname" . }}-logs-i
166 mountPath: /var/log/onap/config-binding-service
169 - name: {{ include "common.fullname" . }}-fb-conf
171 name: {{ include "common.release" . }}-cbs-filebeat-configmap
172 {{- if .Values.service.secure.enabled }}
173 - name: {{ include "common.fullname" . }}-data-fb
175 - name: {{ include "common.fullname" . }}-logs
180 {{- if .Values.service.insecure.enabled }}
181 - name: {{ include "common.fullname" . }}-data-fb-i
183 - name: {{ include "common.fullname" . }}-logs-i
188 - name: "{{ include "common.namespace" . }}-docker-registry-key"