However, fluent-bit fails to get POD metadata from the apiserver:
[2018/08/03 05:16:11] [ info] [engine] started (pid=1)
[2018/08/03 05:16:11] [ info] [filter_kube] https=1 host=kubernetes.default.svc port=443
[2018/08/03 05:16:11] [ info] [filter_kube] local POD info OK
[2018/08/03 05:16:11] [ info] [filter_kube] testing connectivity with API server...
[2018/08/03 05:16:11] [ warn] [filter_kube] could not get meta for POD fluent-bit-2vvwm
Turned out to be an auth issue and --set fluent-bit.rbac.create=true did the trick.
I am trying to follow your post Get Kubernetes Logs with EFK Stack in 5 Minutes using minikube 0.28.1/kubernetes 1.10.0 and I was/am running in a few issues:
First thing was that
failed to set up the CRD. Container log was showing:
which looks like an auth issue to me.
Downloaded 0.2 at https://raw.githubusercontent.com/upmc-enterprises/elasticsearch-operator/master/example/controller.yaml, changed the namespace to
logging
and deployed it. That created the CRD andinstalled the operator.
However, fluent-bit fails to get POD metadata from the apiserver:
Turned out to be an auth issue and
--set fluent-bit.rbac.create=true
did the trick.