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" . }}-readiness
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 - name: {{ include "common.name" . }}-job-completion
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
52 - /root/job_complete.py
55 - {{ .Release.Name }}-sdc-cs-config-cassandra
61 fieldPath: metadata.namespace
63 - name: {{ include "common.name" . }}
64 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 - containerPort: {{ .Values.service.internalPort }}
68 - containerPort: {{ .Values.service.internalPort2 }}
69 {{ if eq .Values.liveness.enabled true }}
72 port: {{ .Values.service.internalPort }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
79 - "/var/lib/ready-probe.sh"
80 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 value: {{ .Values.global.env.name }}
86 value: {{ .Values.config.javaOptions }}
87 - name: SDC_CLUSTER_NAME
88 value: "SDC-CS-{{ .Values.global.env.name }}"
89 - name: cassandra_ssl_enabled
90 value: {{ .Values.config.cassandraSslEnabled | quote }}
94 fieldPath: status.podIP
97 secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_user}
100 secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_password}
102 - name: {{ include "common.fullname" . }}-environments
103 mountPath: /root/chef-solo/environments/
104 - name: {{ include "common.fullname" . }}-localtime
105 mountPath: /etc/localtime
107 - name: {{ include "common.fullname" . }}-logs
108 mountPath: /var/log/onap
109 - name: {{ include "common.fullname" . }}-logback
110 mountPath: /tmp/logback.xml
115 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"]
117 {{ toYaml .Values.resources | indent 12 }}
118 {{- if .Values.nodeSelector }}
120 {{ toYaml .Values.nodeSelector | indent 10 }}
122 {{- if .Values.affinity }}
124 {{ toYaml .Values.affinity | indent 10 }}
127 # side car containers
128 - name: {{ include "common.name" . }}-filebeat-onap
129 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
130 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
132 - name: {{ include "common.fullname" . }}-filebeat-conf
133 mountPath: /usr/share/filebeat/filebeat.yml
134 subPath: filebeat.yml
135 - name: {{ include "common.fullname" . }}-logs
136 mountPath: /var/log/onap
137 - name: {{ include "common.fullname" . }}-data-filebeat
138 mountPath: /usr/share/filebeat/data
140 - name: {{ include "common.fullname" . }}-localtime
143 - name: {{ include "common.fullname" . }}-filebeat-conf
145 name: {{ .Release.Name }}-sdc-filebeat-configmap
146 - name: {{ include "common.fullname" . }}-data-filebeat
148 - name: {{ include "common.fullname" . }}-logback
150 name : {{ include "common.fullname" . }}-logging-configmap
151 - name: {{ include "common.fullname" . }}-environments
153 name: {{ .Release.Name }}-sdc-environments-configmap
155 - name: {{ include "common.fullname" . }}-logs
158 - name: "{{ include "common.namespace" . }}-docker-registry-key"