1 # Copyright © 2018 AT&T, Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
38 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
41 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
43 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
45 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "http-user-creds" "key" "login") | indent 10 }}
47 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "http-user-creds" "key" "password") | indent 10 }}
48 - name: HTTP_ADMIN_USER
49 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "admin-creds" "key" "login") | indent 10 }}
50 - name: HTTP_ADMIN_PASSWORD
51 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "admin-creds" "key" "password") | indent 10 }}
52 - name: HTTP_NODE_USER
53 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "node-creds" "key" "login") | indent 10 }}
54 - name: HTTP_NODE_PASSWORD
55 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "node-creds" "key" "password") | indent 10 }}
56 - name: REST_CONF_USER
57 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "restconf-creds" "key" "login") | indent 10 }}
58 - name: REST_CONF_PASSWORD
59 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "restconf-creds" "key" "password") | indent 10 }}
61 - mountPath: /config-input
65 image: "{{ .Values.global.envsubstImage }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 name: {{ include "common.name" . }}-update-config
72 - {{ .Values.config.dbPodName }}
78 fieldPath: metadata.namespace
79 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 name: {{ include "common.name" . }}-readiness
83 - name: {{ include "common.name" . }}
84 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
85 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
86 command: ["/bin/bash"]
87 args: ["-c", "cd /opt/onap/ccsdk/dgbuilder/ && ./start.sh sdnc1.0 && wait"]
89 - containerPort: {{ .Values.service.internalPort }}
92 port: {{ .Values.service.internalPort }}
93 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
94 periodSeconds: {{ .Values.readiness.periodSeconds }}
96 - name: SDNC_CONFIG_DIR
97 value: /opt/onap/sdnc/data/properties
99 - mountPath: /etc/localtime
103 mountPath: /opt/app/application.properties
104 subPath: application.properties
106 mountPath: /opt/onap/ccsdk/dgbuilder/releases/sdnc1.0/conf/svclogic.properties
107 subPath: svclogic.properties
109 mountPath: /opt/onap/ccsdk/dgbuilder/svclogic/svclogic.properties
110 subPath: svclogic.properties
112 mountPath: /opt/onap/ccsdk/dgbuilder/releases/sdnc1.0/customSettings.js
113 subPath: customSettings.js
115 {{ include "common.resources" . | indent 12 }}
116 {{- if .Values.nodeSelector }}
118 {{ toYaml .Values.nodeSelector | indent 10 }}
120 {{- if .Values.affinity }}
122 {{ toYaml .Values.affinity | indent 10 }}
130 name: {{ include "common.fullname" . }}-config
135 - name: "{{ include "common.namespace" . }}-docker-registry-key"