Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
fixup! [filebeat] use container input instead of docker input
Browse files Browse the repository at this point in the history
[filebeat] mount /var/log inside filebeat pods

This is required to use container input withg CRI paths.
  • Loading branch information
jmlrt committed Apr 9, 2020
1 parent dc9e716 commit 72f704e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions filebeat/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: varlog
hostPath:
path: /var/log
- name: varrundockersock
hostPath:
path: /var/run/docker.sock
Expand Down Expand Up @@ -152,6 +155,9 @@ spec:
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: varlog
mountPath: /var/log
readOnly: true
# Necessary when using autodiscovery; avoid mounting it otherwise
# See: https://www.elastic.co/guide/en/beats/filebeat/master/configuration-autodiscover.html
- name: varrundockersock
Expand Down

0 comments on commit 72f704e

Please sign in to comment.