Setup in a containerized environment and with structured logging is a nightmare. Last time I checked structured logging was entirely unsupported. Fail2ban has fallen out of times.
In any case your threat model for container workflow is already 100x more complicated than some one-server blog with an open SSH port, I would give up on fail2ban immediately