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.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
35 {{- if .Values.initJob.enabled }}
36 - name: {{ include "common.name" . }}-job-completion
37 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
38 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
40 - /root/job_complete.py
43 - {{ include "common.fullname" . }}-workflow-init
49 fieldPath: metadata.namespace
52 - name: {{ include "common.name" . }}
53 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 - containerPort: {{ .Values.service.internalPort }}
57 - containerPort: {{ .Values.service.internalPort2 }}
58 # disable liveness probe when breakpoints set in debugger
59 # so K8s doesn't restart unresponsive container
60 {{ if .Values.liveness.enabled }}
63 port: {{ .Values.service.internalPort }}
64 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.liveness.periodSeconds }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
74 value: {{ .Values.config.javaOptions }}
76 value: "{{ .Values.config.cassandraHosts }}"
78 value: "{{ .Values.config.cassandraClientPort }}"
79 - name: CS_AUTHENTICATE
80 value: "{{ .Values.config.cassandraAuthenticationEnabled }}"
83 secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_user}
86 secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_password}
87 - name: CS_SSL_ENABLED
88 value: "{{ .Values.config.cassandraSSLEnabled }}"
89 - name: CS_TRUST_STORE_PATH
90 value: "{{ .Values.config.cassandraTrustStorePath }}"
91 - name: CS_TRUST_STORE_PASSWORD
92 value: "{{ .Values.config.cassandraTrustStorePassword }}"
94 value: "{{ .Values.config.sdcProtocol }}"
96 value: "{{ .Values.config.sdcEndpoint }}"
98 value: "{{ .Values.config.sdcExternalUser }}"
100 value: "{{ .Values.config.sdcExternalUserPassword }}"
101 - name: SERVER_SSL_ENABLED
102 value: "{{ .Values.config.serverSSLEnabled }}"
103 - name: SERVER_SSL_KEYSTORE_TYPE
104 value: "{{ .Values.config.serverSSLKeyStoreType }}"
105 - name: SERVER_SSL_KEYSTORE_PATH
106 value: "{{ .Values.config.serverSSLKeyStorePath }}"
107 - name: SERVER_SSL_KEY_PASSWORD
108 value: "{{ .Values.config.serverSSLKeyPassword }}"
110 {{- template "sdc-wfd-be.volumeMounts" . }}
112 {{- template "sdc-wfd-be.volumes" . }}
114 - name: "{{ include "common.namespace" . }}-docker-registry-key"