added filebeat to all components
[oom.git] / kubernetes / appc / templates / appc-deployment.yaml
index 049ac5d..b192c30 100644 (file)
@@ -55,10 +55,21 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: appc-controller-container
         volumeMounts:
-        - mountPath: /opt/openecomp/appc/data/properties
-          name: appc-conf
-        - mountPath: /opt/openecomp/sdnc/data/properties
-          name: sdnc-conf
+        - mountPath: /etc/localtime
+          name: localtime
+          readOnly: true
+        - mountPath: /opt/openecomp/appc/data/properties/appc.properties
+          name: appc-properties
+        - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
+          name: appc-aaiclient-properties
+        - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
+          name: sdnc-aaiclient-properties
+        - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
+          name: sdnc-admportal-json
+        - mountPath: /var/log/onap
+          name: appc-logs
+        - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
+          name: appc-log-config
         ports:
         - containerPort: 8181
         - containerPort: 1830
@@ -67,12 +78,41 @@ spec:
             port: 8181
           initialDelaySeconds: 5
           periodSeconds: 10
+      - image: {{ .Values.image.filebeat }}
+        imagePullPolicy: {{ .Values.pullPolicy }}
+        name: filebeat-onap
+        volumeMounts:
+        - mountPath: /usr/share/filebeat/filebeat.yml
+          name: filebeat-conf
+        - mountPath: /var/log/onap
+          name: appc-logs
+        - mountPath: /usr/share/filebeat/data
+          name: appc-data-filebeat
       volumes:
-        - name: appc-conf
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
+        - name: filebeat-conf
+          hostPath:
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
+        - name: appc-log-config
+          hostPath:
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/appc/org.ops4j.pax.logging.cfg
+        - name: appc-logs
+          emptyDir: {}
+        - name: appc-data-filebeat
+          emptyDir: {}
+        - name: appc-properties
+          hostPath:
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties
+        - name: appc-aaiclient-properties
+          hostPath:
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties
+        - name: sdnc-aaiclient-properties
           hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf
-        - name: sdnc-conf
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
+        - name: sdnc-admportal-json
           hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"