2 # Copyright © 2017 Amdocs, AT&T, Bell Canada
3 # Modifications Copyright © 2018 ZTE
4 # Modifications Copyright © 2021 Orange
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 - name: {{ include "common.name" . }}-job-completion
30 image: {{ include "repositoryGenerator.image.readiness" . }}
31 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
36 - {{ include "common.release" . }}-sdc-onboarding-be
42 fieldPath: metadata.namespace
51 - name: {{ include "common.name" . }}
52 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 ports: {{ include "common.containerPorts" . | nindent 12 }}
55 {{ if eq .Values.liveness.enabled true }}
58 path: /onboarding-api/v1.0/healthcheck
59 port: {{ .Values.service.internalPort }}
60 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
61 periodSeconds: {{ .Values.liveness.periodSeconds }}
62 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
63 successThreshold: {{ .Values.liveness.successThreshold }}
64 failureThreshold: {{ .Values.liveness.failureThreshold }}
68 path: /onboarding-api/v1.0/healthcheck
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
72 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
73 successThreshold: {{ .Values.readiness.successThreshold }}
74 failureThreshold: {{ .Values.readiness.failureThreshold }}
77 path: /onboarding-api/v1.0/healthcheck
78 port: {{ .Values.service.internalPort }}
79 initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }}
80 periodSeconds: {{ .Values.startup.periodSeconds }}
81 timeoutSeconds: {{ .Values.startup.timeoutSeconds }}
82 successThreshold: {{ .Values.startup.successThreshold }}
83 failureThreshold: {{ .Values.startup.failureThreshold }}
84 resources: {{ include "common.resources" . | nindent 12 }}
87 value: {{ .Values.env.name }}
89 value: {{ .Values.config.javaOptions }}
90 - name: SDC_CLUSTER_NAME
91 value: "SDC-CS-{{ .Values.env.name }}"
92 - name: cassandra_ssl_enabled
93 value: {{ .Values.config.cassandraSslEnabled | quote }}
97 fieldPath: status.podIP
100 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_user}
103 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: sdc_password}
107 - name: sdc-environments
108 mountPath: /app/jetty/chef-solo/environments/
110 mountPath: /etc/localtime
113 mountPath: /var/log/onap
115 mountPath: /tmp/logback.xml
120 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/app/jetty/config/onboarding-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
121 # side car containers
122 {{ include "common.log.sidecar" . | nindent 8 }}
123 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
128 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
131 name : {{ include "common.fullname" . }}-logging-configmap
132 - name: sdc-environments
134 name: {{ include "common.release" . }}-sdc-environments-configmap
139 - name: "{{ include "common.namespace" . }}-docker-registry-key"