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 - ip: "{{ .Values.config.aaiServiceClusterIp }}"
57 - "aai.api.simpledemo.openecomp.org"
59 - name: {{ include "common.name" . }}
60 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 - containerPort: {{ .Values.service.externalPort }}
64 - containerPort: {{ .Values.service.externalPort2 }}
69 {{- if eq .Values.liveness.enabled true }}
72 port: {{ .Values.service.externalPort }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 port: {{ .Values.service.externalPort }}
79 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
80 periodSeconds: {{ .Values.readiness.periodSeconds }}
83 value: "{{ .Values.replicaCount }}"
85 - mountPath: /etc/localtime
88 - mountPath: /tmp/policy-install/config/feature-healthcheck.conf
90 subPath: feature-healthcheck.conf
91 - mountPath: /tmp/policy-install/config/feature-pooling-dmaap.conf
93 subPath: feature-pooling-dmaap.conf
94 - mountPath: /tmp/policy-install/config/base.conf
97 - mountPath: /tmp/policy-install/config/policy-management.conf
99 subPath: policy-management.conf
100 - mountPath: /tmp/policy-install/config/drools-tweaks.sh
102 subPath: drools-tweaks.sh
103 - mountPath: /tmp/policy-install/config/apps-install.sh
105 subPath: apps-install.sh
106 - mountPath: /tmp/policy-install/config/drools-preinstall.sh
108 subPath: drools-preinstall.sh
109 - mountPath: /usr/share/maven/conf/settings.xml
110 name: drools-settingsxml
111 subPath: settings.xml
112 - mountPath: /var/log/onap
114 - mountPath: /tmp/logback.xml
120 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"]
122 {{ toYaml .Values.resources | indent 12 }}
123 {{- if .Values.nodeSelector }}
124 - image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.loggingImage }}"
125 imagePullPolicy: {{ .Values.pullPolicy }}
128 - mountPath: /usr/share/filebeat/filebeat.yml
130 subPath: filebeat.yml
131 - mountPath: /var/log/onap
133 - mountPath: /usr/share/filebeat/data
134 name: policy-data-filebeat
136 {{ toYaml .Values.nodeSelector | indent 10 }}
138 {{- if .Values.affinity }}
140 {{ toYaml .Values.affinity | indent 10 }}
146 - name: filebeat-conf
148 name: {{ .Release.Name }}-filebeat-configmap
151 - name: policy-data-filebeat
153 - name: policy-logback
155 name: {{ include "common.fullname" . }}-log-configmap
156 - name: drools-settingsxml
158 name: {{ include "common.fullname" . }}-settings-configmap
159 - name: drools-config
161 name: {{ include "common.fullname" . }}-configmap
166 - key: feature-pooling-dmaap.conf
167 path: feature-pooling-dmaap.conf
169 - key: policy-management.conf
170 path: policy-management.conf
172 - key: drools-tweaks.sh
173 path: drools-tweaks.sh
175 - key: apps-install.sh
176 path: apps-install.sh
178 - key: drools-preinstall.sh
179 path: drools-preinstall.sh
181 - name: drools-secret
183 secretName: {{ include "common.fullname" . }}-secret
185 - key: feature-healthcheck.conf
186 path: feature-healthcheck.conf
189 - name: "{{ include "common.namespace" . }}-docker-registry-key"