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: {{ .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-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.internalPort }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 path: /dcae/healthCheckOld
79 port: {{ .Values.service.internalPort }}
80 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 value: {{ .Values.global.env.name }}
86 value: {{ .Values.config.javaOptions }}
90 fieldPath: status.podIP
92 - name: {{ include "common.fullname" . }}-environments
93 mountPath: /var/opt/dcae-dt/chef-solo/environments/
94 - name: {{ include "common.fullname" . }}-localtime
95 mountPath: /etc/localtime
97 - name: {{ include "common.fullname" . }}-logs
98 mountPath: /var/log/onap
99 - name: {{ include "common.fullname" . }}-logback
100 mountPath: /tmp/logback.xml
103 {{ include "common.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"