2 # Copyright © 2017 Amdocs, AT&T, Bell Canada
3 # Modifications Copyright © 2018 ZTE
4 # Modifications Copyright © 2023 Deutsche Telekom
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
21 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
23 selector: {{- include "common.selectors" . | nindent 4 }}
24 replicas: {{ .Values.replicaCount }}
26 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
29 {{- if .Values.initJob.enabled }}
30 - name: {{ include "common.name" . }}-job-completion
31 image: {{ include "repositoryGenerator.image.readiness" . }}
32 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
37 - {{ include "common.fullname" . }}
43 fieldPath: metadata.namespace
53 - name: {{ include "common.name" . }}
54 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 ports: {{ include "common.containerPorts" . | nindent 12 }}
57 # disable liveness probe when breakpoints set in debugger
58 # so K8s doesn't restart unresponsive container
59 {{ if .Values.liveness.enabled }}
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 successThreshold: {{ .Values.liveness.successThreshold }}
66 failureThreshold: {{ .Values.liveness.failureThreshold }}
70 port: {{ .Values.service.internalPort }}
71 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
72 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 successThreshold: {{ .Values.readiness.successThreshold }}
74 failureThreshold: {{ .Values.readiness.failureThreshold }}
77 port: {{ .Values.service.internalPort }}
78 initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }}
79 periodSeconds: {{ .Values.startup.periodSeconds }}
80 successThreshold: {{ .Values.startup.successThreshold }}
81 failureThreshold: {{ .Values.startup.failureThreshold }}
84 value: {{ .Values.config.javaOptions }}
86 value: "{{ .Values.global.sdc_cassandra.serviceName }}"
88 value: "{{ .Values.config.cassandraClientPort }}"
89 - name: CS_AUTHENTICATE
90 value: "{{ .Values.config.cassandraAuthenticationEnabled }}"
93 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_user}
96 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_password}
97 - name: CS_SSL_ENABLED
98 value: "{{ .Values.config.cassandraSSLEnabled }}"
99 - name: CS_TRUST_STORE_PATH
100 value: "{{ .Values.config.cassandraTrustStorePath }}"
101 - name: CS_TRUST_STORE_PASSWORD
103 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: cs_truststore_password}
107 value: "{{ .Values.config.sdcEndpoint.http }}"
109 value: "{{ .Values.config.sdcExternalUser }}"
112 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: wf_external_user_password}
113 - name: SERVER_SSL_ENABLED
115 resources: {{ include "common.resources" . | nindent 12 }}
116 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
118 - name: "{{ include "common.namespace" . }}-docker-registry-key"