Auto Failover to DR site

Hello,

I was following the blog post Disaster Recovery for MongoDB on Kubernetes - Percona Database Performance Blog to setup a DR site.

In this blog post there is a requirement to do the failover manually. Is there a way to automate this process?