49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: filebeat
|
|
namespace: app-notifications
|
|
labels:
|
|
app: filebeat
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: filebeat
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: filebeat
|
|
spec:
|
|
serviceAccountName: filebeat
|
|
containers:
|
|
- name: filebeat
|
|
image: docker.elastic.co/beats/filebeat:8.12.1
|
|
args: [
|
|
"-c", "/usr/share/filebeat/filebeat.yml",
|
|
"-e"
|
|
]
|
|
env:
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /usr/share/filebeat/filebeat.yml
|
|
subPath: filebeat.yml
|
|
- name: varlog
|
|
mountPath: /var/log
|
|
- name: dockersock
|
|
mountPath: /var/lib/docker/containers
|
|
readOnly: true
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: filebeat-config
|
|
- name: varlog
|
|
hostPath:
|
|
path: /var/log
|
|
- name: dockersock
|
|
hostPath:
|
|
path: /var/lib/docker/containers
|