Enroll filebeat in Kubernetes, monitor in Kibana when output is kafka possible?

I want to enroll filebeat running in a kubernetes cluster outputting to kafka.
In kibana it says to run that sudo filebeat enroll [API_KEY] command but since this is running kubernetes, it gets kinda tricky.

Is there a way to specify how to enroll the beat to centralized management via the yaml config?