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: extensions/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 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
39 - {{ .Values.global.mariadb.nameOverride }}
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" . }}-readiness
54 name: {{ include "common.name" . }}
55 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 - containerPort: {{ .Values.service.externalPort }}
59 - containerPort: {{ .Values.service.externalPort2 }}
60 {{- if eq .Values.liveness.enabled true }}
63 port: {{ .Values.service.externalPort }}
64 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.liveness.periodSeconds }}
69 port: {{ .Values.service.externalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 - name: PRELOAD_POLICIES
74 value: "{{ .Values.config.preloadPolicies }}"
76 - mountPath: /etc/localtime
79 - mountPath: /tmp/policy-install/config/push-policies.sh
81 subPath: push-policies.sh
82 - mountPath: /tmp/policy-install/config/pap-tweaks.sh
84 subPath: pap-tweaks.sh
85 - mountPath: /tmp/policy-install/config/paplp.conf
88 - mountPath: /tmp/policy-install/config/pap.conf
91 - mountPath: /tmp/policy-install/config/mysql.conf
94 - mountPath: /tmp/policy-install/config/elk.conf
97 - mountPath: /tmp/policy-install/config/console.conf
100 - mountPath: /tmp/policy-install/config/base.conf
103 - mountPath: /tmp/policy-install/do-start.sh
106 - mountPath: /var/log/onap
108 - mountPath: /tmp/policy-install/logback.xml
109 name: policy-sdk-logback
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/servers/pap/webapps/pap/WEB-INF/classes/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; export SRC=/tmp/policy-install/logback.xml; export DST=/opt/app/policy/servers/console/webapps/onap/WEB-INF/classes/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
118 - image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.global.loggingImage | default .Values.loggingImage }}"
119 imagePullPolicy: {{ .Values.pullPolicy }}
122 - mountPath: /usr/share/filebeat/filebeat.yml
124 subPath: filebeat.yml
125 - mountPath: /var/log/onap
127 - mountPath: /usr/share/filebeat/data
128 name: policy-data-filebeat
130 {{ toYaml .Values.resources | indent 12 }}
131 {{- if .Values.nodeSelector }}
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: policy-sdk-logback
155 name: {{ include "common.fullname" . }}-sdk-log-configmap
158 name: {{ .Release.Name }}-pe-configmap
162 name: {{ .Release.Name }}-pe-scripts-configmap
166 name: {{ include "common.fullname" . }}-pe-configmap
169 - name: "{{ include "common.namespace" . }}-docker-registry-key"