Skip to content

Commit

Permalink
Fix filebeat data dir mount wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Cairry authored Sep 26, 2024
1 parent 96d6ccf commit 049a7bf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions deploy/kubernetes/watchlog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ spec:
- mountPath: /host
name: root
readOnly: true
- mountPath: /usr/share/filebeat
name: filebeat
- mountPath: /usr/share/filebeat/data
name: data
- mountPath: /usr/share/filebeat/logs
name: logs

restartPolicy: Always

Expand All @@ -84,6 +86,10 @@ spec:
type: ""
name: root
- hostPath:
path: /var/lib/filebeat
path: /var/lib/filebeat/data
type: DirectoryOrCreate
name: filebeat
name: data
- hostPath:
path: /var/log/filebeat
type: DirectoryOrCreate
name: logs

0 comments on commit 049a7bf

Please sign in to comment.