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/
83 - mountPath: /tmp/policy-install/do-start.sh
86 - mountPath: /var/log/onap
88 - mountPath: /tmp/logback.xml
94 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"]
95 - image: {{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}
96 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
99 - mountPath: /usr/share/filebeat/filebeat.yml
101 subPath: filebeat.yml
102 - mountPath: /var/log/onap
104 - mountPath: /usr/share/filebeat/data
105 name: policy-data-filebeat
107 {{ toYaml .Values.resources | indent 12 }}
108 {{- if .Values.nodeSelector }}
110 {{ toYaml .Values.nodeSelector | indent 10 }}
112 {{- if .Values.affinity }}
114 {{ toYaml .Values.affinity | indent 10 }}
120 - name: filebeat-conf
122 name: {{ .Release.Name }}-filebeat-configmap
125 - name: policy-data-filebeat
127 - name: policy-logback
129 name: {{ include "common.fullname" . }}-log-configmap
132 name: {{ .Release.Name }}-pe-configmap
136 name: {{ .Release.Name }}-pe-scripts-configmap
140 name: {{ include "common.fullname" . }}-pe-configmap
143 - name: "{{ include "common.namespace" . }}-docker-registry-key"