1 # Copyright © 2017 Amdocs, AT&T, Bell Canada
2 # Modifications Copyright © 2018 ZTE
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
20 selector: {{- include "common.selectors" . | nindent 4 }}
21 replicas: {{ .Values.replicaCount }}
23 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 - name: {{ include "common.name" . }}-readiness
37 fieldPath: metadata.namespace
38 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
39 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 - name: {{ include "common.name" . }}-job-completion
41 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
42 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
44 - /root/job_complete.py
47 - {{ include "common.release" . }}-sdc-onboarding-be-cassandra-init
53 fieldPath: metadata.namespace
55 - name: {{ include "common.name" . }}
56 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 ports: {{ include "common.containerPorts" . | nindent 10 }}
59 {{ if eq .Values.liveness.enabled true }}
62 path: /sdc2/rest/healthCheck
63 port: {{ .Values.liveness.port }}
64 scheme: {{ if (include "common.needTLS" .) }}HTTPS{{ else }}HTTP{{ end }}
65 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.liveness.periodSeconds }}
67 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
72 - "/var/lib/jetty/ready-probe.sh"
73 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.readiness.periodSeconds }}
75 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
76 resources: {{ include "common.resources" . | nindent 12 }}
79 value: {{ .Values.global.env.name }}
81 value: {{ .Values.config.javaOptions }}
82 - name: cassandra_ssl_enabled
83 value: {{ .Values.config.cassandraSslEnabled | quote }}
87 fieldPath: status.podIP
89 - name: {{ include "common.fullname" . }}-environments
90 mountPath: /var/lib/jetty/chef-solo/environments/
91 - name: {{ include "common.fullname" . }}-localtime
92 mountPath: /etc/localtime
94 - name: {{ include "common.fullname" . }}-logs
95 mountPath: /var/log/onap
96 - name: {{ include "common.fullname" . }}-logback
97 mountPath: /tmp/logback.xml
102 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/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"]
103 # side car containers
104 - name: {{ include "common.name" . }}-filebeat-onap
105 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
106 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
108 - name: {{ include "common.fullname" . }}-filebeat-conf
109 mountPath: /usr/share/filebeat/filebeat.yml
110 subPath: filebeat.yml
111 - name: {{ include "common.fullname" . }}-logs
112 mountPath: /var/log/onap
113 - name: {{ include "common.fullname" . }}-data-filebeat
114 mountPath: /usr/share/filebeat/data
116 - name: {{ include "common.fullname" . }}-localtime
119 - name: {{ include "common.fullname" . }}-filebeat-conf
121 name: {{ include "common.release" . }}-sdc-filebeat-configmap
122 - name: {{ include "common.fullname" . }}-data-filebeat
124 - name: {{ include "common.fullname" . }}-logback
126 name : {{ include "common.fullname" . }}-logging-configmap
127 - name: {{ include "common.fullname" . }}-environments
129 name: {{ include "common.release" . }}-sdc-environments-configmap
131 - name: {{ include "common.fullname" . }}-logs
134 - name: "{{ include "common.namespace" . }}-docker-registry-key"