2 # Copyright © 2017 Amdocs, AT&T, Bell Canada
3 # Modifications Copyright © 2018 ZTE
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
23 replicas: {{ .Values.replicaCount }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
28 - name: {{ include "common.name" . }}-readiness
34 {{- if not .Values.global.kafka.useKafka }}
43 fieldPath: metadata.namespace
44 image: {{ include "repositoryGenerator.image.readiness" . }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - name: {{ include "common.name" . }}-job-completion
54 image: {{ include "repositoryGenerator.image.readiness" . }}
55 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
60 - {{ include "common.release" . }}-sdc-onboarding-be
66 fieldPath: metadata.namespace
75 - name: {{ include "common.name" . }}
76 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
77 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
78 ports: {{ include "common.containerPorts" . | nindent 12 }}
79 {{ if eq .Values.liveness.enabled true }}
82 path: /sdc2/rest/healthCheck
83 port: {{ .Values.service.internalPort }}
84 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
85 periodSeconds: {{ .Values.liveness.periodSeconds }}
86 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
87 successThreshold: {{ .Values.liveness.successThreshold }}
88 failureThreshold: {{ .Values.liveness.failureThreshold }}
92 path: /sdc2/rest/healthCheck
93 port: {{ .Values.service.internalPort }}
94 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
95 periodSeconds: {{ .Values.readiness.periodSeconds }}
96 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
97 successThreshold: {{ .Values.readiness.successThreshold }}
98 failureThreshold: {{ .Values.readiness.failureThreshold }}
101 path: /sdc2/rest/healthCheck
102 port: {{ .Values.service.internalPort }}
103 initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }}
104 periodSeconds: {{ .Values.startup.periodSeconds }}
105 timeoutSeconds: {{ .Values.startup.timeoutSeconds }}
106 successThreshold: {{ .Values.startup.successThreshold }}
107 failureThreshold: {{ .Values.startup.failureThreshold }}
108 resources: {{ include "common.resources" . | nindent 12 }}
111 value: {{ .Values.env.name }}
113 value: {{ .Values.config.javaOptions }}
114 - name: cassandra_ssl_enabled
115 value: {{ .Values.config.cassandraSslEnabled | quote }}
119 fieldPath: status.podIP
120 {{- if .Values.global.kafka.useKafka }}
121 - name: SASL_JAAS_CONFIG
124 name: {{ include "common.name" . }}-ku
125 key: sasl.jaas.config
127 value: {{ .Values.global.kafka.useKafka | quote }}
130 - name: sdc-environments
131 mountPath: /app/jetty/chef-solo/environments/
133 mountPath: /etc/localtime
136 mountPath: /var/log/onap
138 mountPath: /tmp/logback.xml
143 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/app/jetty/config/catalog-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
144 # side car containers
145 {{ include "common.log.sidecar" . | nindent 8 }}
146 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
151 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
154 name : {{ include "common.fullname" . }}-logging-configmap
155 - name: sdc-environments
157 name: {{ include "common.release" . }}-sdc-environments-configmap
162 - name: "{{ include "common.namespace" . }}-docker-registry-key"