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 }}
99 resources: {{ include "common.resources" . | nindent 12 }}
102 path: /sdc2/rest/healthCheck
103 port: {{ .Values.service.internalPort }}
104 initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }}
105 periodSeconds: {{ .Values.startup.periodSeconds }}
106 timeoutSeconds: {{ .Values.startup.timeoutSeconds }}
107 successThreshold: {{ .Values.startup.successThreshold }}
108 failureThreshold: {{ .Values.startup.failureThreshold }}
109 resources: {{ include "common.resources" . | nindent 12 }}
112 value: {{ .Values.env.name }}
114 value: {{ .Values.config.javaOptions }}
115 - name: cassandra_ssl_enabled
116 value: {{ .Values.config.cassandraSslEnabled | quote }}
120 fieldPath: status.podIP
121 {{- if .Values.global.kafka.useKafka }}
122 - name: SASL_JAAS_CONFIG
125 name: {{ include "common.name" . }}-ku
126 key: sasl.jaas.config
128 value: {{ .Values.global.kafka.useKafka | quote }}
131 - name: sdc-environments
132 mountPath: /app/jetty/chef-solo/environments/
134 mountPath: /etc/localtime
137 mountPath: /var/log/onap
139 mountPath: /tmp/logback.xml
144 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"]
145 # side car containers
146 {{ include "common.log.sidecar" . | nindent 8 }}
147 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
152 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
155 name : {{ include "common.fullname" . }}-logging-configmap
156 - name: sdc-environments
158 name: {{ include "common.release" . }}-sdc-environments-configmap
163 - name: "{{ include "common.namespace" . }}-docker-registry-key"