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: apps/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 serviceName: {{ include "common.servicename" . }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ .Release.Name }}
43 - {{ .Values.global.pap.nameOverride }}
49 fieldPath: metadata.namespace
50 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 name: {{ include "common.name" . }}-readiness
58 name: {{ include "common.name" . }}
59 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 {{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
64 - containerPort: {{ .Values.service.externalPort }}
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 }}
78 - mountPath: /etc/localtime
81 - mountPath: /tmp/policy-install/config/base.conf
84 - mountPath: /tmp/policy-install/config/pdp-tweaks.sh
86 subPath: pdp-tweaks.sh
87 - mountPath: /tmp/policy-install/config/pdplp.conf
90 - mountPath: /tmp/policy-install/config/pdp.conf
93 - mountPath: /tmp/policy-install/do-start.sh
96 - mountPath: /var/log/onap
98 - mountPath: /tmp/logback.xml
104 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"]
105 - image: {{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}
106 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
109 - mountPath: /usr/share/filebeat/filebeat.yml
111 subPath: filebeat.yml
112 - mountPath: /var/log/onap
114 - mountPath: /usr/share/filebeat/data
115 name: policy-data-filebeat
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"