about summary refs log tree commit diff
path: root/tools/eck-operator/templates/beat.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eck-operator/templates/beat.yaml')
-rw-r--r--tools/eck-operator/templates/beat.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/eck-operator/templates/beat.yaml b/tools/eck-operator/templates/beat.yaml
new file mode 100644
index 0000000..0b9edd4
--- /dev/null
+++ b/tools/eck-operator/templates/beat.yaml
@@ -0,0 +1,40 @@
+apiVersion: beat.k8s.elastic.co/v1beta1
+kind: Beat
+metadata:
+  name: log-storage
+spec:
+  type: filebeat
+  version: 8.14.1
+  elasticsearchRef:
+    name: log-storage
+  config:
+    filebeat.inputs:
+    - type: container
+      paths:
+      - /var/log/containers/*.log
+  daemonSet:
+    podTemplate:
+      spec:
+        dnsPolicy: ClusterFirstWithHostNet
+        hostNetwork: true
+        securityContext:
+          runAsUser: 0
+        containers:
+        - name: filebeat
+          volumeMounts:
+          - name: varlogcontainers
+            mountPath: /var/log/containers
+          - name: varlogpods
+            mountPath: /var/log/pods
+          - name: varlibdockercontainers
+            mountPath: /var/lib/docker/containers
+        volumes:
+        - name: varlogcontainers
+          hostPath:
+            path: /var/log/containers
+        - name: varlogpods
+          hostPath:
+            path: /var/log/pods
+        - name: varlibdockercontainers
+          hostPath:
+            path: /var/lib/docker/containers