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.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
35 - name: {{ include "common.name" . }}-readiness
46 fieldPath: metadata.namespace
47 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 - name: {{ include "common.name" . }}-job-completion
50 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
51 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
53 - /root/job_complete.py
56 - {{ .Release.Name }}-sdc-onboarding-be-cassandra-init
62 fieldPath: metadata.namespace
64 - name: {{ include "common.name" . }}
65 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - containerPort: {{ .Values.service.internalPort }}
69 - containerPort: {{ .Values.service.internalPort2 }}
70 {{ if eq .Values.liveness.enabled true }}
73 path: /sdc2/rest/version
74 port: {{ .Values.service.internalPort }}
76 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
83 - "/var/lib/ready-probe.sh"
84 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
85 periodSeconds: {{ .Values.readiness.periodSeconds }}
86 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
88 {{ include "common.resources" . | indent 12 }}
91 value: {{ .Values.global.env.name }}
93 value: {{ .Values.config.javaOptions }}
94 - name: cassandra_ssl_enabled
95 value: {{ .Values.config.cassandraSslEnabled | quote }}
99 fieldPath: status.podIP
101 - name: {{ include "common.fullname" . }}-environments
102 mountPath: /root/chef-solo/environments/
103 - name: {{ include "common.fullname" . }}-localtime
104 mountPath: /etc/localtime
106 - name: {{ include "common.fullname" . }}-logs
107 mountPath: /var/log/onap
108 - name: {{ include "common.fullname" . }}-logback
109 mountPath: /tmp/logback.xml
114 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"]
115 # side car containers
116 - name: {{ include "common.name" . }}-filebeat-onap
117 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
118 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
120 - name: {{ include "common.fullname" . }}-filebeat-conf
121 mountPath: /usr/share/filebeat/filebeat.yml
122 subPath: filebeat.yml
123 - name: {{ include "common.fullname" . }}-logs
124 mountPath: /var/log/onap
125 - name: {{ include "common.fullname" . }}-data-filebeat
126 mountPath: /usr/share/filebeat/data
128 - name: {{ include "common.fullname" . }}-localtime
131 - name: {{ include "common.fullname" . }}-filebeat-conf
133 name: {{ .Release.Name }}-sdc-filebeat-configmap
134 - name: {{ include "common.fullname" . }}-data-filebeat
136 - name: {{ include "common.fullname" . }}-logback
138 name : {{ include "common.fullname" . }}-logging-configmap
139 - name: {{ include "common.fullname" . }}-environments
141 name: {{ .Release.Name }}-sdc-environments-configmap
143 - name: {{ include "common.fullname" . }}-logs
146 - name: "{{ include "common.namespace" . }}-docker-registry-key"