Chapter 4. Building a High Availability Cluster
In this chapter, we will cover the following topics:
- Clustering etcd
- Building multiple masters
Introduction
Avoiding a single point of failure is a concept we need to always keep in mind. In this chapter, you will learn how to build components in Kubernetes with high availability. We will also go through the steps to build a three-node etcd cluster and masters with multinodes.
Clustering etcd
etcd stores network information and states in Kubernetes. Any data loss could be crucial. Clustering is strongly recommended in etcd. etcd comes with support for clustering; a cluster of N members can tolerate up to (N-1)/2 failures. There are three mechanisms for creating an etcd cluster. They are as follows:
- Static
- etcd discovery
- DNS discovery
In this recipe, we will discuss how to bootstrap an etcd cluster by static and etcd discovery.
Getting ready
Before you start building an etcd cluster, you have to decide how many members you need. How big the...