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.fullname" . }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
42 - {{ .Values.global.pap.nameOverride }}
48 fieldPath: metadata.namespace
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 name: {{ include "common.name" . }}-readiness
57 name: {{ include "common.name" . }}
58 image: {{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - containerPort: {{ .Values.service.externalPort }}
62 {{- if eq .Values.liveness.enabled true }}
65 port: {{ .Values.service.externalPort }}
66 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.liveness.periodSeconds }}
71 port: {{ .Values.service.externalPort }}
72 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.readiness.periodSeconds }}
75 - mountPath: /etc/localtime
78 - mountPath: /tmp/policy-install/config/base.conf
81 - mountPath: /tmp/policy-install/config/pdp-tweaks.sh
83 subPath: pdp-tweaks.sh
84 - mountPath: /tmp/policy-install/config/pdplp.conf
87 - mountPath: /tmp/policy-install/config/pdp.conf
90 - mountPath: /tmp/policy-install/do-start.sh
93 - mountPath: /var/log/onap
95 - mountPath: /tmp/logback.xml
101 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/opt/app/policy/servers/pdp/webapps/pdp/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"]
102 - image: {{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}
103 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
106 - mountPath: /usr/share/filebeat/filebeat.yml
108 subPath: filebeat.yml
109 - mountPath: /var/log/onap
111 - mountPath: /usr/share/filebeat/data
112 name: policy-data-filebeat
114 {{ toYaml .Values.resources | indent 12 }}
115 {{- if .Values.nodeSelector }}
117 {{ toYaml .Values.nodeSelector | indent 10 }}
119 {{- if .Values.affinity }}
121 {{ toYaml .Values.affinity | indent 10 }}
127 - name: filebeat-conf
129 name: {{ .Release.Name }}-filebeat-configmap
132 - name: policy-data-filebeat
134 - name: policy-logback
136 name: {{ include "common.fullname" . }}-log-configmap
139 name: {{ .Release.Name }}-pe-configmap
143 name: {{ .Release.Name }}-pe-scripts-configmap
147 name: {{ include "common.fullname" . }}-pe-configmap
150 - name: "{{ include "common.namespace" . }}-docker-registry-key"