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.disablePolicyPap }}
16 apiVersion: extensions/v1beta1
20 namespace: "{{ .Values.nsPrefix }}"
22 replicas: {{ .Values.papReplicas }}
43 fieldPath: metadata.namespace
44 image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
45 imagePullPolicy: {{ .Values.pullPolicy }}
47 - command: ["/bin/bash", "-c", "echo $POD_IP > /config/ip_addr.txt"]
53 fieldPath: status.podIP
57 image: {{ .Values.image.ubuntu }}
58 imagePullPolicy: {{ .Values.pullPolicy }}
59 name: generate-ip-addr-txt
65 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion }}"
66 imagePullPolicy: {{ .Values.pullPolicy }}
69 - name: PRELOAD_POLICIES
77 initialDelaySeconds: 5
80 - mountPath: /etc/localtime
83 - mountPath: /tmp/policy-install/config/
85 - mountPath: /var/log/onap
87 - mountPath: /tmp/policy-install/logback.xml
88 name: policy-sdk-logback
90 - mountPath: /tmp/logback.xml
96 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"]
97 - image: {{ .Values.image.filebeat }}
98 imagePullPolicy: {{ .Values.pullPolicy }}
101 - mountPath: /usr/share/filebeat/filebeat.yml
103 subPath: filebeat.yml
104 - mountPath: /var/log/onap
106 - mountPath: /usr/share/filebeat/data
107 name: policy-data-filebeat
112 - name: filebeat-conf
114 name: policy-filebeat-configmap
117 - name: policy-data-filebeat
119 - name: policy-logback
121 name: policy-pap-log-configmap
122 - name: policy-sdk-logback
124 name: policy-sdk-log-configmap
127 name: policy-dep-pe-configmap
130 - name: "{{ .Values.nsPrefix }}-docker-registry-key"