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.disablePolicyDrools }}
16 apiVersion: extensions/v1beta1
20 namespace: "{{ .Values.nsPrefix }}"
22 replicas: {{ .Values.droolsReplicas }}
45 fieldPath: metadata.namespace
46 image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 name: drools-readiness
50 - ip: "{{ .Values.aaiServiceClusterIp }}"
52 - "aai.api.simpledemo.openecomp.org"
58 image: "{{ .Values.image.policyDrools }}:{{ .Values.image.policyDroolsVersion }}"
59 imagePullPolicy: {{ .Values.pullPolicy }}
66 initialDelaySeconds: 5
69 - mountPath: /etc/localtime
72 - mountPath: /tmp/policy-install/config/policy-keystore
74 subPath: policy-keystore
75 - mountPath: /tmp/policy-install/config/feature-healthcheck.conf
77 subPath: feature-healthcheck.conf
78 - mountPath: /tmp/policy-install/config/base.conf
81 - mountPath: /tmp/policy-install/config/policy-management.conf
83 subPath: policy-management.conf
84 - mountPath: /tmp/policy-install/config/drools-tweaks.sh
86 subPath: drools-tweaks.sh
87 - mountPath: /usr/share/maven/conf/settings.xml
88 name: drools-settingsxml
90 - mountPath: /var/log/onap
92 - mountPath: /tmp/logback.xml
98 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"]
99 - image: {{ .Values.image.filebeat }}
100 imagePullPolicy: {{ .Values.pullPolicy }}
103 - mountPath: /usr/share/filebeat/filebeat.yml
105 subPath: filebeat.yml
106 - mountPath: /var/log/onap
108 - mountPath: /usr/share/filebeat/data
109 name: policy-data-filebeat
114 - name: filebeat-conf
116 name: policy-filebeat-configmap
119 - name: policy-data-filebeat
121 - name: policy-logback
123 name: policy-drools-log-configmap
124 - name: drools-settingsxml
126 name: policy-dep-drools-settings-configmap
127 - name: drools-config
129 name: policy-dep-drools-configmap
134 - key: policy-management.conf
135 path: policy-management.conf
137 - key: drools-tweaks.sh
138 path: drools-tweaks.sh
140 - name: drools-secret
142 secretName: policy-dep-drools-secret
144 - key: policy-keystore
145 path: policy-keystore
147 - key: feature-healthcheck.conf
148 path: feature-healthcheck.conf
151 - name: "{{ .Values.nsPrefix }}-docker-registry-key"