1 #{{ if not .Values.disablePolicyDrools }}
2 apiVersion: extensions/v1beta1
6 namespace: "{{ .Values.nsPrefix }}-policy"
18 pod.beta.kubernetes.io/init-containers: '[
35 "fieldPath": "metadata.namespace"
40 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
41 "imagePullPolicy": "{{ .Values.pullPolicy }}",
42 "name": "drools-readiness"
47 - image: "{{ .Values.image.policyDrools }}:{{ .Values.image.policyDroolsVersion }}"
48 imagePullPolicy: {{ .Values.pullPolicy }}
56 initialDelaySeconds: 5
59 - mountPath: /etc/localtime
62 - mountPath: /tmp/policy-install/config
64 - mountPath: /usr/share/maven/conf/settings.xml
65 name: drools-settingsxml
66 - mountPath: /var/log/onap
68 - mountPath: /tmp/logback.xml
73 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/opt/app/policy/config/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
74 - image: {{ .Values.image.filebeat }}
75 imagePullPolicy: {{ .Values.pullPolicy }}
78 - mountPath: /usr/share/filebeat/filebeat.yml
80 - mountPath: /var/log/onap
82 - mountPath: /usr/share/filebeat/data
83 name: policy-data-filebeat
90 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
93 - name: policy-data-filebeat
95 - name: policy-logback
97 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/policy/drools/logback.xml
98 - name: drools-settingsxml
100 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/drools/settings.xml
103 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/drools/
105 - name: "{{ .Values.nsPrefix }}-docker-registry-key"