在节点故障和网络分区期间,Kubernetes 中存在多个主节点
作者: wb14123创建于 2024年10月26日更新于 2025年9月30日
标签questionci
What happened? When running a Jepsen test with Patroni (https://GitHub.com/wb14123/jepsen-postgres-ha), it observes multiple primaries through the tests, when some node failure and network partition events happened. The test setup a 3 nodes Kubernetes cluster with k3s, and deploy it with this yaml file. Then it randomly takes down the primary node and create network partition. At the same time it tries to get primary nodes using kubectl get pods -L role -o wide. The test itself will report failure at the end. However, just giving an example here, here is how the cluster ended in one of my test:
内容来源: patroni/patroni