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
47 fieldPath: metadata.namespace
48 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - name: {{ include "common.name" . }}-job-completion
51 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
52 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
54 - /root/job_complete.py
57 - {{ .Release.Name }}-sdc-cs-config-cassandra
63 fieldPath: metadata.namespace
65 - name: {{ include "common.name" . }}
66 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 - containerPort: {{ .Values.service.internalPort }}
70 - containerPort: {{ .Values.service.internalPort2 }}
71 # disable liveness probe when breakpoints set in debugger
72 # so K8s doesn't restart unresponsive container
73 {{- if eq .Values.liveness.enabled true }}
76 port: {{ .Values.service.internalPort }}
77 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.liveness.periodSeconds }}
82 port: {{ .Values.service.internalPort }}
83 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
84 periodSeconds: {{ .Values.readiness.periodSeconds }}
87 value: {{ .Values.global.env.name }}
89 value: {{ .Values.config.javaOptions }}
90 - name: cassandra_ssl_enabled
91 value: {{ .Values.config.cassandraSslEnabled | quote }}
95 fieldPath: status.podIP
97 - name: {{ include "common.fullname" . }}-environments
98 mountPath: /root/chef-solo/environments/
99 - name: {{ include "common.fullname" . }}-localtime
100 mountPath: /etc/localtime
102 - name: {{ include "common.fullname" . }}-logs
103 mountPath: /var/log/onap
104 - name: {{ include "common.fullname" . }}-logback
105 mountPath: /tmp/logback.xml
109 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"]
111 {{ toYaml .Values.resources | indent 12 }}
112 {{- if .Values.nodeSelector }}
114 {{ toYaml .Values.nodeSelector | indent 10 }}
116 {{- if .Values.affinity }}
118 {{ toYaml .Values.affinity | indent 10 }}
121 # side car containers
122 - name: {{ include "common.name" . }}-filebeat-onap
123 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
124 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
126 - name: {{ include "common.fullname" . }}-filebeat-conf
127 mountPath: /usr/share/filebeat/filebeat.yml
128 subPath: filebeat.yml
129 - name: {{ include "common.fullname" . }}-logs
130 mountPath: /var/log/onap
131 - name: {{ include "common.fullname" . }}-data-filebeat
132 mountPath: /usr/share/filebeat/data
134 - name: {{ include "common.fullname" . }}-localtime
137 - name: {{ include "common.fullname" . }}-filebeat-conf
139 name: {{ .Release.Name }}-sdc-filebeat-configmap
140 - name: {{ include "common.fullname" . }}-data-filebeat
142 - name: {{ include "common.fullname" . }}-logback
144 name : {{ include "common.fullname" . }}-logging-configmap
145 - name: {{ include "common.fullname" . }}-environments
147 name: {{ .Release.Name }}-sdc-environments-configmap
149 - name: {{ include "common.fullname" . }}-logs
152 - name: "{{ include "common.namespace" . }}-docker-registry-key"