Elastic-Agent autodiscovery for Kubernetes pod logs not working after upgrading to 8.6.x

For anybody reading this post having the same issue, it's going to be tracked here: Elastic Agent 8.6.x standalone deployment in Kubernetes doesn't start monitoring new pods until agent restart · Issue #2269 · elastic/elastic-agent · GitHub