1 # Copyright © 2017 Amdocs, AT&T, Bell Canada
2 # Modifications Copyright © 2018 ZTE
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 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
38 {{- if .Values.initJob.enabled }}
39 - name: {{ include "common.name" . }}-job-completion
40 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
41 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
43 - /root/job_complete.py
46 - {{ include "common.fullname" . }}-workflow-init
52 fieldPath: metadata.namespace
55 - name: {{ include "common.name" . }}
56 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 - containerPort: {{ template "wfd-be.internalPort" . }}
60 # disable liveness probe when breakpoints set in debugger
61 # so K8s doesn't restart unresponsive container
62 {{ if .Values.liveness.enabled }}
65 port: {{ template "wfd-be.internalPort" . }}
66 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.liveness.periodSeconds }}
71 port: {{ template "wfd-be.internalPort" . }}
72 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.readiness.periodSeconds }}
76 value: {{ .Values.config.javaOptions }}
78 value: "{{ .Values.global.cassandra.serviceName }}"
80 value: "{{ .Values.config.cassandraClientPort }}"
81 - name: CS_AUTHENTICATE
82 value: "{{ .Values.config.cassandraAuthenticationEnabled }}"
85 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_user}
88 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_password}
89 - name: CS_SSL_ENABLED
90 value: "{{ .Values.config.cassandraSSLEnabled }}"
91 - name: CS_TRUST_STORE_PATH
92 value: "{{ .Values.config.cassandraTrustStorePath }}"
93 - name: CS_TRUST_STORE_PASSWORD
95 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: cs_truststore_password}
97 value: "{{ .Values.config.sdcProtocol }}"
99 value: "{{ .Values.config.sdcEndpoint }}"
101 value: "{{ .Values.config.sdcExternalUser }}"
104 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: wf_external_user_password}
105 - name: SERVER_SSL_ENABLED
106 value: "{{ .Values.config.serverSSLEnabled }}"
107 - name: SERVER_SSL_KEYSTORE_TYPE
108 value: "{{ .Values.config.serverSSLKeyStoreType }}"
109 - name: SERVER_SSL_KEYSTORE_PATH
110 value: "{{ .Values.config.serverSSLKeyStorePath }}"
111 - name: SERVER_SSL_KEY_PASSWORD
113 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: keystore_password}
114 - name: SERVER_SSL_TRUSTSTORE_TYPE
115 value: "{{ .Values.config.serverSSLTrustStoreType }}"
116 - name: SERVER_SSL_TRUSTSTORE_PATH
117 value: "{{ .Values.config.serverSSLTrustStorePath }}"
118 - name: SERVER_SSL_TRUST_PASSWORD
120 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: truststore_password}
124 subPath: org.onap.sdc.p12
126 mountPath: /truststore
127 subPath: org.onap.sdc.trust.jks
133 - name: "{{ include "common.namespace" . }}-docker-registry-key"