I have a three-node, air-gapped K3s cluster with a three-node Percona XtraDB Cluster. Each database pod runs on a different node. I disabled HAProxy and ProxySQL and created a ClusterIP Service that selects the database pods.
After powering off one node, the application kept trying to connect to its database pod, even after I recreated the application pod. I expected new connections to go to a surviving pod. What should I check, and can this work without changing the application?
waltz.404-ish:
Also check the Service's publishNotReadyAddresses setting. That can change how readiness is represented for its endpoints.