1 # Copyright © 2017 Amdocs, AT&T, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
34 - name: {{ include "common.name" . }}-job-completion
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
38 - /root/job_complete.py
41 - {{ .Release.Name }}-sdc-onboarding-be-cassandra-init
47 fieldPath: metadata.namespace
49 - name: {{ include "common.name" . }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - containerPort: {{ .Values.service.internalPort }}
54 - containerPort: {{ .Values.service.internalPort2 }}
55 {{ if eq .Values.liveness.enabled true }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 - "/var/lib/ready-probe.sh"
66 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.readiness.periodSeconds }}
70 value: {{ .Values.global.env.name }}
72 value: {{ .Values.config.javaOptions }}
73 - name: SDC_CLUSTER_NAME
74 value: "SDC-CS-{{ .Values.global.env.name }}"
75 - name: cassandra_ssl_enabled
76 value: {{ .Values.config.cassandraSslEnabled | quote }}
80 fieldPath: status.podIP
83 secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_user}
86 secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_password}
88 - name: {{ include "common.fullname" . }}-environments
89 mountPath: /root/chef-solo/environments/
90 - name: {{ include "common.fullname" . }}-localtime
91 mountPath: /etc/localtime
93 - name: {{ include "common.fullname" . }}-logs
94 mountPath: /var/log/onap
95 - name: {{ include "common.fullname" . }}-logback
96 mountPath: /tmp/logback.xml
101 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/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"]
103 {{ toYaml .Values.resources | indent 12 }}
104 {{- if .Values.nodeSelector }}
106 {{ toYaml .Values.nodeSelector | indent 10 }}
108 {{- if .Values.affinity }}
110 {{ toYaml .Values.affinity | indent 10 }}
113 # side car containers
114 - name: {{ include "common.name" . }}-filebeat-onap
115 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
116 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
118 - name: {{ include "common.fullname" . }}-filebeat-conf
119 mountPath: /usr/share/filebeat/filebeat.yml
120 subPath: filebeat.yml
121 - name: {{ include "common.fullname" . }}-logs
122 mountPath: /var/log/onap
123 - name: {{ include "common.fullname" . }}-data-filebeat
124 mountPath: /usr/share/filebeat/data
126 - name: {{ include "common.fullname" . }}-localtime
129 - name: {{ include "common.fullname" . }}-filebeat-conf
131 name: {{ .Release.Name }}-sdc-filebeat-configmap
132 - name: {{ include "common.fullname" . }}-data-filebeat
134 - name: {{ include "common.fullname" . }}-logback
136 name : {{ include "common.fullname" . }}-logging-configmap
137 - name: {{ include "common.fullname" . }}-environments
139 name: {{ .Release.Name }}-sdc-environments-configmap
141 - name: {{ include "common.fullname" . }}-logs
144 - name: "{{ include "common.namespace" . }}-docker-registry-key"