2 # Copyright (c) 2020 Bell Canada, Deutsche Telekom
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 replicas: {{ .Values.replicaCount }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 - name: {{ include "common.name" . }}
28 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
33 - 'AUTH_TOKEN=`echo -n $API_USERNAME:$API_PASSWORD | base64` /opt/app/onap/python/start.sh'
34 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
35 ports: {{- include "common.containerPorts" . | nindent 12 }}
36 {{ if .Values.liveness.enabled }}
39 port: {{ .Values.liveness.port }}
40 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
41 periodSeconds: {{ .Values.liveness.periodSeconds }}
42 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
46 port: {{ .Values.liveness.port }}
47 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.readiness.periodSeconds }}
49 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
52 value: {{ .Values.config.appPort }}
54 value: {{ .Values.config.authType }}
56 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "api-credentials" "key" "login") | nindent 12 }}
58 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "api-credentials" "key" "password") | nindent 12 }}
60 value: {{ .Values.config.logFile }}
61 - name: ARTIFACT_MANAGER_PORT
62 value: {{ .Values.config.artifactManagerPort }}
63 - name: ARTIFACT_MANAGER_SERVER_LOG_FILE
64 value: {{ .Values.config.artifactManagerLogFile }}
66 - mountPath: /etc/localtime
69 - mountPath: {{ .Values.persistence.deployedBlueprint }}
70 name: {{ include "common.fullname" . }}-blueprints
72 {{ include "common.resources" . | nindent 12 }}
73 {{- if .Values.nodeSelector }}
75 {{ toYaml .Values.nodeSelector | nindent 10 }}
77 {{- if .Values.affinity }}
79 {{ toYaml .Values.affinity | nindent 10 }}
85 # Py executor shares the blueprintsprocessor storage (for now) to
86 # share uploaded CBA files. In the future it will be deprecated
87 # when all parts of the CDS will make use of Artifact Manager
88 - name: {{ include "common.fullname" . }}-blueprints
89 persistentVolumeClaim:
90 claimName: {{ include "common.release" . }}-cds-blueprints
92 - name: "{{ include "common.namespace" . }}-docker-registry-key"