Fail2ban Sidecar in Kubernetes

Because fail2ban is a sidecar for bitwarden_rs, they share the same network space. I would think that if properly configured, fail2ban could block the incoming connections on the port that bitwarden_rs is using. I’m just not sure how to do that.