How to manually switch keepalived?

  1. Go to the desired pods: kubectl -n d8-keepalived exec -it keepalived-<name> -- sh
  2. Edit the /etc/keepalived/keepalived.conf file and in the line with the priority parameter, replace the value with the number of keepalived pods + 1.
  3. Send a signal to reread the configuration: kill -HUP 1.