Currently we use logfile input to parse k8s' container logs. A more complete approach would be to use container input which is support by Agent at https://github.com/elastic/beats/blob/5ae6d63969c872e6229f271907a732d2ddc532dc/x-pack/elastic-agent/spec/filebeat.yml#L53.
Standalone manifest would need a tuning too.