2 # Copyright © 2017 Amdocs, Bell Canada
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.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
43 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "rest-creds" "key" "login") | indent 10 }}
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "rest-creds" "key" "password") | indent 10 }}
54 - mountPath: /config-input
58 image: "{{ .Values.global.envsubstImage }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-update-config
66 - {{ .Values.config.sdncChartName }}
72 fieldPath: metadata.namespace
73 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
74 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 name: {{ include "common.name" . }}-readiness
77 - name: {{ include "common.name" . }}
78 command: ["/bin/bash"]
79 args: ["-c", "cd /opt/onap/ccsdk && ./startAnsibleServer.sh"]
81 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
82 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
84 - containerPort: {{ .Values.service.internalPort }}
85 # disable liveness probe when breakpoints set in debugger
86 # so K8s doesn't restart unresponsive container
87 {{ if .Values.liveness.enabled }}
90 port: {{ .Values.service.internalPort }}
91 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
92 periodSeconds: {{ .Values.liveness.periodSeconds }}
96 port: {{ .Values.service.internalPort }}
97 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
98 periodSeconds: {{ .Values.readiness.periodSeconds }}
100 - mountPath: /etc/localtime
103 - mountPath: {{ .Values.config.configDir }}/RestServer_config
105 subPath: RestServer_config
107 {{ include "common.resources" . | indent 12 }}
108 {{- if .Values.nodeSelector }}
110 {{ toYaml .Values.nodeSelector | indent 10 }}
112 {{- if .Values.affinity }}
114 {{ toYaml .Values.affinity | indent 10 }}
122 name: {{ include "common.fullname" . }}
128 - name: "{{ include "common.namespace" . }}-docker-registry-key"