43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
apiVersion: beat.k8s.elastic.co/v1beta1
|
|
kind: Beat
|
|
metadata:
|
|
name: beat
|
|
spec:
|
|
type: filebeat
|
|
version: 7.17.22
|
|
elasticsearchRef:
|
|
name: es
|
|
kibanaRef:
|
|
name: kibana
|
|
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
|