1 # Copyright © 2017 Amdocs, 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: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
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 - {{ include "common.release" . }}-sdc-dcae-be-tools
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.internalPort2 }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 path: /dcae/healthCheckOld
79 port: {{ .Values.service.internalPort2 }}
81 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
82 periodSeconds: {{ .Values.readiness.periodSeconds }}
85 value: {{ .Values.global.env.name }}
87 value: {{ .Values.config.javaOptions }}
91 fieldPath: status.podIP
93 - name: {{ include "common.fullname" . }}-environments
94 mountPath: /root/chef-solo/environments/
95 - name: {{ include "common.fullname" . }}-localtime
96 mountPath: /etc/localtime
98 - name: {{ include "common.fullname" . }}-logs
99 mountPath: /var/lib/jetty/logs
100 - name: {{ include "common.fullname" . }}-logback
101 mountPath: /tmp/logback.xml
104 {{ include "common.resources" . | indent 12 }}
105 {{- if .Values.nodeSelector }}
107 {{ toYaml .Values.nodeSelector | indent 10 }}
109 {{- if .Values.affinity }}
111 {{ toYaml .Values.affinity | indent 10 }}
114 # side car containers
115 - name: {{ include "common.name" . }}-filebeat-onap
116 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
117 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
119 - name: {{ include "common.fullname" . }}-filebeat-conf
120 mountPath: /usr/share/filebeat/filebeat.yml
121 subPath: filebeat.yml
122 - name: {{ include "common.fullname" . }}-logs
123 mountPath: /var/log/onap
124 - name: {{ include "common.fullname" . }}-data-filebeat
125 mountPath: /usr/share/filebeat/data
127 - name: {{ include "common.fullname" . }}-localtime
130 - name: {{ include "common.fullname" . }}-filebeat-conf
132 name: {{ include "common.release" . }}-sdc-filebeat-configmap
133 - name: {{ include "common.fullname" . }}-data-filebeat
135 - name: {{ include "common.fullname" . }}-logback
137 name : {{ include "common.fullname" . }}-logging-configmap
138 - name: {{ include "common.fullname" . }}-environments
140 name: {{ include "common.release" . }}-sdc-environments-configmap
142 - name: {{ include "common.fullname" . }}-logs
145 - name: "{{ include "common.namespace" . }}-docker-registry-key"