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 }}
38 - {{ .Values.global.mariadb.nameOverride }}
40 - {{ .Values.global.nexus.nameOverride }}
46 fieldPath: metadata.namespace
47 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 name: {{ include "common.name" . }}-readiness
51 - ip: "{{ .Values.aaiServiceClusterIp }}"
53 - "aai.api.simpledemo.openecomp.org"
55 - name: {{ include "common.name" . }}
56 image: "{{ .Values.global.repository | default .Values.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/policy-keystore
86 subPath: policy-keystore
87 - mountPath: /tmp/policy-install/config/feature-healthcheck.conf
89 subPath: feature-healthcheck.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: /usr/share/maven/conf/settings.xml
100 name: drools-settingsxml
101 subPath: settings.xml
102 - mountPath: /var/log/onap
104 - mountPath: /tmp/logback.xml
107 - mountPath: /tmp/policy-install/do-start.sh
113 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"]
115 {{ toYaml .Values.resources | indent 12 }}
116 {{- if .Values.nodeSelector }}
117 - image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.loggingImage }}"
118 imagePullPolicy: {{ .Values.pullPolicy }}
121 - mountPath: /usr/share/filebeat/filebeat.yml
123 subPath: filebeat.yml
124 - mountPath: /var/log/onap
126 - mountPath: /usr/share/filebeat/data
127 name: policy-data-filebeat
129 {{ toYaml .Values.nodeSelector | indent 10 }}
131 {{- if .Values.affinity }}
133 {{ toYaml .Values.affinity | indent 10 }}
139 - name: filebeat-conf
141 name: {{ .Release.Name }}-filebeat-configmap
144 - name: policy-data-filebeat
146 - name: policy-logback
148 name: {{ include "common.fullname" . }}-log-configmap
149 - name: drools-settingsxml
151 name: {{ include "common.fullname" . }}-settings-configmap
152 - name: drools-config
154 name: {{ include "common.fullname" . }}-configmap
159 - key: policy-management.conf
160 path: policy-management.conf
162 - key: drools-tweaks.sh
163 path: drools-tweaks.sh
165 - name: drools-secret
167 secretName: {{ include "common.fullname" . }}-secret
169 - key: policy-keystore
170 path: policy-keystore
172 - key: feature-healthcheck.conf
173 path: feature-healthcheck.conf
177 name: {{ include "common.fullname" . }}-script-configmap
180 - name: "{{ include "common.namespace" . }}-docker-registry-key"