2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
5 # Modifications Copyright © 2018 Amdocs, Bell Canada
6 # Copyright (c) 2020-2021 J. F. Lucas. All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END=========================================================
25 name: {{ include "common.fullname" . }}
26 namespace: {{ include "common.namespace" . }}
28 app: {{ include "common.name" . }}
29 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
30 release: {{ include "common.release" . }}
31 heritage: {{ .Release.Service }}
36 app: {{ include "common.name" . }}
40 app: {{ include "common.name" . }}
41 release: {{ include "common.release" . }}
43 # host alias allows local 'cfy' command to use https and match
44 # the host name in the certificate
48 - "dcae-cloudify-manager"
49 # Cloudify requires a fixed hostname across restarts
50 hostname: dcae-cloudify-manager
52 - name: {{ include "common.name" . }}-readiness
53 image: {{ include "repositoryGenerator.image.readiness" . }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 fieldPath: metadata.namespace
70 - name: {{ include "common.name" . }}-multisite-init
71 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.multisiteInitImage }}
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 - {{ include "common.namespace" . }}
77 - {{ .Values.multisiteConfigMapName }}
79 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.consulLoaderImage }}
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 - k8s-plugin|/plugin-configs/k8s-plugin.json
85 - dmaap-plugin|/plugin-configs/dmaap-plugin.json
88 - mountPath: /plugin-configs
96 fieldPath: status.podIP
97 - name: aaf_locator_fqdn
99 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}
100 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
103 - mountPath: /opt/app/osaaf
105 {{- if .Values.persistence.enabled }}
106 - name: remove-lost-found
107 image: {{ include "repositoryGenerator.image.busybox" . }}
108 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
110 - mountPath: /cfy-persist
116 - "rm -rf '/cfy-persist/lost+found';"
119 - name: {{ include "common.name" . }}
120 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
121 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
123 - name: REQUESTS_CA_BUNDLE
124 value: "/opt/onap/certs/cacert.pem"
126 {{ include "common.resources" . | indent 12 }}
128 - containerPort: {{ .Values.service.internalPort }}
129 # disable liveness probe when breakpoints set in debugger
130 # so K8s doesn't restart unresponsive container
131 {{- if eq .Values.liveness.enabled true }}
134 port: {{ .Values.service.internalPort }}
135 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
136 periodSeconds: {{ .Values.liveness.periodSeconds }}
137 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
142 - /scripts/readiness-check.sh
143 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
144 periodSeconds: {{ .Values.readiness.periodSeconds }}
145 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
147 - mountPath: /opt/onap/config.txt
149 name: {{ include "common.fullname" .}}-config
151 - mountPath: /opt/onap/kube
152 name: {{ include "common.fullname" .}}-kubeconfig
157 - mountPath: /sys/fs/cgroup
158 name: {{ include "common.fullname" . }}-cgroup
160 - mountPath: /etc/localtime
163 - mountPath: /cfy-persist
165 - mountPath: /opt/onap/certs
167 - mountPath: /opt/onap/cm-secrets
172 serviceAccountName: {{ include "common.fullname" (dict "suffix" "create" "dot" . )}}
174 - name: {{ include "common.fullname" . }}-config
176 name: {{ include "common.fullname" . }}-configmap
177 - name: {{ include "common.fullname" .}}-kubeconfig
179 name: {{ .Values.multisiteConfigMapName }}
180 - name: plugin-configs
182 name: {{ include "common.fullname" . }}-plugins
185 secretName: dcae-token
186 - name: {{ include "common.fullname" . }}-cgroup
192 - name: cm-persistent
193 {{- if .Values.persistence.enabled }}
194 persistentVolumeClaim:
195 claimName: {{ include "common.fullname" . }}-data
203 secretName: {{ include "common.secret.getSecretNameFast" (dict "global" . "uid" "cm-pass") }}
205 - name: "{{ include "common.namespace" . }}-docker-registry-key"