Closed Misterhex closed 6 years ago
I am not familiar with headless service concept in Kubernetes, would you please elaborate?
Note that the upstream feature (balance connections to different nodes) is only available in Forward output plugin for now.
Hi @edsiper , headlesss service in kubernetes is a dns hostname that resolve to multiple ip addresses. These ip addresses points to fluentd instances that accept in_forward
.
Tried in my own lab setup and confirmed the followings load balance correctly.
1) upstream server with single node hostname that resolves multiple ip. ( headless service in k8 ) 2) out_forward with hostname that resolves multiple ip. 3) out_forward with hostname to k8 service load balancer without session affinity.
Does it failover to second ip if fluentd on one of ip addresses not responding?
out_forward with hostname to k8 service load balancer without session affinity.
I found that in this case a long connection is created between flunt-bit and fluentd, the connection is not reload balanced after it is established, and if a new instance of fluntd is expanded, the traffic is not forwarded to the new instance
@Misterhex
Does the new upstream feature works with kubernetes headless service? How could we check where is fluentbit sending to which pod ip?
Thanks for the help