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: apps/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 serviceName: {{ include "common.servicename" . }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
42 - {{ .Values.global.mariadb.nameOverride }}
44 - {{ .Values.global.nexus.nameOverride }}
50 fieldPath: metadata.namespace
51 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 name: {{ include "common.name" . }}-readiness
55 - name: {{ include "common.name" . }}
56 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 - containerPort: {{ .Values.service.externalPort }}
60 - containerPort: {{ .Values.service.externalPort2 }}
65 {{- if eq .Values.liveness.enabled true }}
68 port: {{ .Values.service.externalPort }}
69 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
70 periodSeconds: {{ .Values.liveness.periodSeconds }}
74 port: {{ .Values.service.externalPort }}
75 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.readiness.periodSeconds }}
79 value: "{{ .Values.replicaCount }}"
81 - mountPath: /etc/localtime
84 - mountPath: /tmp/policy-install/config/feature-healthcheck.conf
86 subPath: feature-healthcheck.conf
87 - mountPath: /tmp/policy-install/config/feature-pooling-dmaap.conf
89 subPath: feature-pooling-dmaap.conf
90 - mountPath: /tmp/policy-install/config/base.conf
93 - mountPath: /tmp/policy-install/config/policy-management.conf
95 subPath: policy-management.conf
96 - mountPath: /tmp/policy-install/config/drools-tweaks.sh
98 subPath: drools-tweaks.sh
99 - mountPath: /tmp/policy-install/config/apps-install.sh
101 subPath: apps-install.sh
102 - mountPath: /tmp/policy-install/config/drools-preinstall.sh
104 subPath: drools-preinstall.sh
105 - mountPath: /usr/share/maven/conf/settings.xml
106 name: drools-settingsxml
107 subPath: settings.xml
108 - mountPath: /var/log/onap
110 - mountPath: /tmp/logback.xml
116 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"]
118 {{ toYaml .Values.resources | indent 12 }}
119 {{- if .Values.nodeSelector }}
120 - image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.loggingImage }}"
121 imagePullPolicy: {{ .Values.pullPolicy }}
124 - mountPath: /usr/share/filebeat/filebeat.yml
126 subPath: filebeat.yml
127 - mountPath: /var/log/onap
129 - mountPath: /usr/share/filebeat/data
130 name: policy-data-filebeat
132 {{ toYaml .Values.nodeSelector | indent 10 }}
134 {{- if .Values.affinity }}
136 {{ toYaml .Values.affinity | indent 10 }}
142 - name: filebeat-conf
144 name: {{ .Release.Name }}-filebeat-configmap
147 - name: policy-data-filebeat
149 - name: policy-logback
151 name: {{ include "common.fullname" . }}-log-configmap
152 - name: drools-settingsxml
154 name: {{ include "common.fullname" . }}-settings-configmap
155 - name: drools-config
157 name: {{ include "common.fullname" . }}-configmap
162 - key: feature-pooling-dmaap.conf
163 path: feature-pooling-dmaap.conf
165 - key: policy-management.conf
166 path: policy-management.conf
168 - key: drools-tweaks.sh
169 path: drools-tweaks.sh
171 - key: apps-install.sh
172 path: apps-install.sh
174 - key: drools-preinstall.sh
175 path: drools-preinstall.sh
177 - name: drools-secret
179 secretName: {{ include "common.fullname" . }}-secret
181 - key: feature-healthcheck.conf
182 path: feature-healthcheck.conf
185 - name: "{{ include "common.namespace" . }}-docker-registry-key"