To overwrite filebeat.yml
which is a part of the komljen/filebeat
docker image with Kuberntes ConfigMap (filebeat-config.yaml), create the resource first:
kubectl create -f filebeat-config.yaml --namespace=default
Then create filebeat DaemonSet which will mount above config:
kubectl create -f filebeat-ds.yaml --namespace=default