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 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"
50 - name: {{ include "common.name" . }}-readiness
51 image: {{ include "repositoryGenerator.image.readiness" . }}
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 fieldPath: metadata.namespace
66 - name: {{ include "common.name" . }}-multisite-init
67 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.multisiteInitImage }}
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
71 - {{ include "common.namespace" . }}
73 - {{ .Values.multisiteConfigMapName }}
80 fieldPath: status.podIP
81 - name: aaf_locator_fqdn
83 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}
84 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
87 - mountPath: /opt/app/osaaf
89 {{- if .Values.persistence.enabled }}
90 - name: remove-lost-found
91 image: {{ include "repositoryGenerator.image.busybox" . }}
92 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
94 - mountPath: /cfy-persist
100 - "rm -rf '/cfy-persist/lost+found';"
103 - name: {{ include "common.name" . }}
104 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
105 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
107 - name: REQUESTS_CA_BUNDLE
108 value: "/opt/onap/certs/cacert.pem"
110 {{ include "common.resources" . | indent 12 }}
112 - containerPort: {{ .Values.service.internalPort }}
113 # disable liveness probe when breakpoints set in debugger
114 # so K8s doesn't restart unresponsive container
115 {{- if eq .Values.liveness.enabled true }}
118 port: {{ .Values.service.internalPort }}
119 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
120 periodSeconds: {{ .Values.liveness.periodSeconds }}
121 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
126 - /scripts/readiness-check.sh
127 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
128 periodSeconds: {{ .Values.readiness.periodSeconds }}
129 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
131 - mountPath: /opt/onap/config.txt
133 name: {{ include "common.fullname" .}}-config
135 - mountPath: /opt/onap/kube
136 name: {{ include "common.fullname" .}}-kubeconfig
141 - mountPath: /sys/fs/cgroup
142 name: {{ include "common.fullname" . }}-cgroup
144 - mountPath: /etc/localtime
147 - mountPath: /cfy-persist
149 - mountPath: /opt/onap/certs
151 - mountPath: /opt/onap/cm-secrets
157 - name: {{ include "common.fullname" . }}-config
159 name: {{ include "common.fullname" . }}-configmap
160 - name: {{ include "common.fullname" .}}-kubeconfig
162 name: {{ .Values.multisiteConfigMapName }}
165 secretName: dcae-token
166 - name: {{ include "common.fullname" . }}-cgroup
172 - name: cm-persistent
173 {{- if .Values.persistence.enabled }}
174 persistentVolumeClaim:
175 claimName: {{ include "common.fullname" . }}-data
183 secretName: {{ include "common.secret.getSecretNameFast" (dict "global" . "uid" "cm-pass") }}
185 - name: "{{ include "common.namespace" . }}-docker-registry-key"