Setting up an HA Kubernetes cluster
We are going to configure and implement an HA MicroK8s Kubernetes cluster utilizing the stacked cluster HA topology that we discussed before. We’ll use the three nodes to install and configure MicroK8s on each of the nodes and simulate node failure to see whether the cluster is resisting component failures and functioning as expected.
To recap, a control plane is run by all the nodes in the HA cluster. A portion (at least three) of the cluster nodes keeps a copy of the Kubernetes cluster datastore (the Dqlite database). A voting procedure is used to pick a leader for database maintenance. Aside from the voting nodes, there are non-voting nodes that store a copy of the database discreetly. These nodes are ready to replace a leaving voter. Finally, some nodes do not vote or duplicate the database. These are known as spare nodes. To summarize, the three node roles are as follows:
- Voters: Replicating the database, participating in leader...