1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 apiVersion: apps/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 serviceName: {{ include "common.servicename" . }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ .Release.Name }}
43 - {{ .Values.global.mariadb.nameOverride }}
45 - {{ .Values.global.nexus.nameOverride }}
51 fieldPath: metadata.namespace
52 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - name: {{ include "common.name" . }}
57 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - containerPort: {{ .Values.service.externalPort }}
61 - containerPort: {{ .Values.service.externalPort2 }}
66 {{- if eq .Values.liveness.enabled true }}
69 port: {{ .Values.service.externalPort }}
70 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.liveness.periodSeconds }}
75 port: {{ .Values.service.externalPort }}
76 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.readiness.periodSeconds }}
80 value: "{{ .Values.replicaCount }}"
82 - mountPath: /etc/localtime
85 - mountPath: /tmp/policy-install/config/feature-healthcheck.conf
87 subPath: feature-healthcheck.conf
88 - mountPath: /tmp/policy-install/config/feature-pooling-dmaap.conf
90 subPath: feature-pooling-dmaap.conf
91 - mountPath: /tmp/policy-install/config/base.conf
94 - mountPath: /tmp/policy-install/config/policy-management.conf
96 subPath: policy-management.conf
97 - mountPath: /tmp/policy-install/config/drools-tweaks.sh
99 subPath: drools-tweaks.sh
100 - mountPath: /tmp/policy-install/config/apps-install.sh
102 subPath: apps-install.sh
103 - mountPath: /tmp/policy-install/config/drools-preinstall.sh
105 subPath: drools-preinstall.sh
106 - mountPath: /usr/share/maven/conf/settings.xml
107 name: drools-settingsxml
108 subPath: settings.xml
109 - mountPath: /var/log/onap
111 - mountPath: /tmp/logback.xml
117 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/opt/app/policy/config/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
119 {{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
120 {{- if .Values.nodeSelector }}
121 - image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.loggingImage }}"
122 imagePullPolicy: {{ .Values.pullPolicy }}
125 - mountPath: /usr/share/filebeat/filebeat.yml
127 subPath: filebeat.yml
128 - mountPath: /var/log/onap
130 - mountPath: /usr/share/filebeat/data
131 name: policy-data-filebeat
133 {{ toYaml .Values.nodeSelector | indent 10 }}
135 {{- if .Values.affinity }}
137 {{ toYaml .Values.affinity | indent 10 }}
143 - name: filebeat-conf
145 name: {{ .Release.Name }}-filebeat-configmap
148 - name: policy-data-filebeat
150 - name: policy-logback
152 name: {{ include "common.fullname" . }}-log-configmap
153 - name: drools-settingsxml
155 name: {{ include "common.fullname" . }}-settings-configmap
156 - name: drools-config
158 name: {{ include "common.fullname" . }}-configmap
163 - key: feature-pooling-dmaap.conf
164 path: feature-pooling-dmaap.conf
166 - key: policy-management.conf
167 path: policy-management.conf
169 - key: drools-tweaks.sh
170 path: drools-tweaks.sh
172 - key: apps-install.sh
173 path: apps-install.sh
175 - key: drools-preinstall.sh
176 path: drools-preinstall.sh
178 - name: drools-secret
180 secretName: {{ include "common.fullname" . }}-secret
182 - key: feature-healthcheck.conf
183 path: feature-healthcheck.conf
186 - name: "{{ include "common.namespace" . }}-docker-registry-key"