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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
23 app: {{ include "common.name" . }}
24 replicas: {{ .Values.replicaCount }}
25 selector: {{- include "common.selectors" . | nindent 4 }}
27 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
34 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
37 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }}
39 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "password") | indent 10 }}
41 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "rest-creds" "key" "login") | indent 10 }}
43 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "rest-creds" "key" "password") | indent 10 }}
45 - mountPath: /config-input
49 image: "{{ .Values.global.envsubstImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 name: {{ include "common.name" . }}-update-config
57 - {{ .Values.config.sdncChartName }}
63 fieldPath: metadata.namespace
64 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 name: {{ include "common.name" . }}-readiness
68 - name: {{ include "common.name" . }}
69 command: ["/bin/bash"]
70 args: ["-c", "cd /opt/onap/ccsdk && ./startAnsibleServer.sh"]
72 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
73 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 - containerPort: {{ .Values.service.internalPort }}
76 # disable liveness probe when breakpoints set in debugger
77 # so K8s doesn't restart unresponsive container
78 {{ if .Values.liveness.enabled }}
81 port: {{ .Values.service.internalPort }}
82 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.liveness.periodSeconds }}
87 port: {{ .Values.service.internalPort }}
88 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
89 periodSeconds: {{ .Values.readiness.periodSeconds }}
91 - mountPath: /etc/localtime
94 - mountPath: {{ .Values.config.configDir }}/RestServer_config
96 subPath: RestServer_config
98 {{ include "common.resources" . | indent 12 }}
99 {{- if .Values.nodeSelector }}
101 {{ toYaml .Values.nodeSelector | indent 10 }}
103 {{- if .Values.affinity }}
105 {{ toYaml .Values.affinity | indent 10 }}
113 name: {{ include "common.fullname" . }}
119 - name: "{{ include "common.namespace" . }}-docker-registry-key"