1 # Copyright © 2020 Huawei Technologies Co., Ltd.
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.
16 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
18 selector: {{- include "common.selectors" . | nindent 4 }}
19 replicas: {{ index .Values.replicaCount }}
20 minReadySeconds: {{ index .Values.minReadySeconds }}
22 type: {{ index .Values.updateStrategy.type }}
24 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
25 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
28 labels: {{- include "common.labels" . | nindent 8 }}
30 initContainers: {{ include "so.certificate.container_importer" . | nindent 8 }}
31 - name: {{ include "common.name" . }}-readiness
33 - /root/job_complete.py
36 - {{ include "common.release" . }}-so-mariadb-config-job
42 fieldPath: metadata.namespace
43 image: {{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 - name: {{ include "common.name" . }}
51 - export BPEL_PASSWORD=`htpasswd -bnBC 10 "" $BPEL_PASSWORD_INPUT | tr -d ':\n' | sed 's/\$2y/\$2a/'`; export ACTUATOR_PASSWORD=`htpasswd -bnBC 10 "" $ACTUATOR_PASSWORD_INPUT | tr -d ':\n' | sed 's/\$2y/\$2a/'`; ./start-app.sh
52 image: {{ include "common.repository" . }}/{{ .Values.image }}
53 resources: {{ include "common.resources" . | nindent 12 }}
54 ports: {{- include "common.containerPorts" . | nindent 12 }}
59 name: {{ include "common.release" . }}-so-db-secrets
60 key: mariadb.readwrite.host
64 name: {{ include "common.release" . }}-so-db-secrets
65 key: mariadb.readwrite.port
67 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 14 }}
69 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 14 }}
70 - name: DB_ADMIN_USERNAME
71 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "login") | indent 14 }}
72 - name: DB_ADMIN_PASSWORD
73 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-admin-creds" "key" "password") | indent 14 }}
75 value: {{ .Values.global.client.certs.truststore }}
76 - name: TRUSTSTORE_PASSWORD
79 name: {{ .Release.Name}}-so-client-certs-secret
80 key: trustStorePassword
82 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "server-bpel-creds" "key" "login") | indent 14 }}
83 - name: BPEL_PASSWORD_INPUT
84 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "server-bpel-creds" "key" "password") | indent 14 }}
85 - name: ACTUATOR_USERNAME
86 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "server-actuator-creds" "key" "login") | indent 14 }}
87 - name: ACTUATOR_PASSWORD_INPUT
88 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "server-actuator-creds" "key" "password") | indent 14 }}
89 {{- if eq .Values.global.security.aaf.enabled true }}
91 value: {{ .Values.global.client.certs.keystore }}
92 - name: KEYSTORE_PASSWORD
95 name: {{ .Release.Name}}-so-client-certs-secret
100 name: {{ include "common.fullname" . }}-env
101 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
102 volumeMounts: {{ include "so.certificate.volume-mounts" . | nindent 12 }}
106 mountPath: /app/config
108 - name: {{ include "common.fullname" . }}-truststore
109 mountPath: /app/client
113 path: {{ index .Values.livenessProbe.path}}
114 port: {{ index .Values.containerPort }}
115 scheme: {{ index .Values.livenessProbe.scheme}}
116 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
117 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
118 timeoutSeconds: {{ index .Values.livenessProbe.timeoutSeconds}}
119 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
120 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
121 volumes: {{ include "so.certificate.volumes" . | nindent 8 }}
126 name: {{ include "common.fullname" . }}
127 - name: {{ include "common.fullname" . }}-truststore
129 secretName: {{ include "common.release" . }}-so-truststore-secret
131 - name: "{{ include "common.namespace" . }}-docker-registry-key"