1 #{{ if not .Values.disablePolicyDrools }}
2 apiVersion: extensions/v1beta1
6 namespace: "{{ .Values.nsPrefix }}-policy"
18 pod.beta.kubernetes.io/init-containers: '[
41 "fieldPath": "metadata.namespace"
46 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
47 "imagePullPolicy": "{{ .Values.pullPolicy }}",
48 "name": "drools-readiness"
57 image: "{{ .Values.image.policyDrools }}:{{ .Values.image.policyDroolsVersion }}"
58 imagePullPolicy: {{ .Values.pullPolicy }}
65 initialDelaySeconds: 5
68 - mountPath: /etc/localtime
71 - mountPath: /tmp/policy-install/config
73 - mountPath: /usr/share/maven/conf/settings.xml
74 name: drools-settingsxml
75 - mountPath: /var/log/onap
77 - mountPath: /tmp/logback.xml
82 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"]
83 - image: {{ .Values.image.filebeat }}
84 imagePullPolicy: {{ .Values.pullPolicy }}
87 - mountPath: /usr/share/filebeat/filebeat.yml
89 - mountPath: /var/log/onap
91 - mountPath: /usr/share/filebeat/data
92 name: policy-data-filebeat
99 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
102 - name: policy-data-filebeat
104 - name: policy-logback
106 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/policy/drools/logback.xml
107 - name: drools-settingsxml
109 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/drools/settings.xml
112 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/drools/
114 - name: "{{ .Values.nsPrefix }}-docker-registry-key"