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 #{{ if not .Values.disablePolicyPdp }}
16 apiVersion: extensions/v1beta1
20 namespace: "{{ .Values.nsPrefix }}"
22 replicas: {{ .Values.pdpReplicas }}
43 fieldPath: metadata.namespace
44 image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
45 imagePullPolicy: {{ .Values.pullPolicy }}
52 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion }}"
53 imagePullPolicy: {{ .Values.pullPolicy }}
60 initialDelaySeconds: 5
63 - mountPath: /etc/localtime
66 - mountPath: /tmp/policy-install/config
68 - mountPath: /var/log/onap
70 - mountPath: /tmp/logback.xml
76 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"]
77 - image: {{ .Values.image.filebeat }}
78 imagePullPolicy: {{ .Values.pullPolicy }}
81 - mountPath: /usr/share/filebeat/filebeat.yml
84 - mountPath: /var/log/onap
86 - mountPath: /usr/share/filebeat/data
87 name: policy-data-filebeat
94 name: policy-filebeat-configmap
97 - name: policy-data-filebeat
99 - name: policy-logback
101 name: policy-pdp-log-configmap
104 name: policy-dep-pe-configmap
107 - name: "{{ .Values.nsPrefix }}-docker-registry-key"