Skip to content

Commit

Permalink
bootstrapper: run etcd with pre-vote flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
derpsteb committed Sep 18, 2023
1 parent 83cfc86 commit ae9926e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bootstrapper/internal/kubernetes/k8sapi/kubeadm_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ func (c *KubdeadmConfiguration) InitConfiguration(externalCloudProvider bool, cl
},
// Target kubernetes version of the control plane.
KubernetesVersion: clusterVersion,
// Configration of the etcd cluster spawned for the control plane.
Etcd: kubeadm.Etcd{
Local: &kubeadm.LocalEtcd{
ExtraArgs: map[string]string{
// Alleviate problems where nodes that are partitioned from the etcd cluster
// and rejoin later trigger leader re-elections. Leader re-elections can
// disrupt requests.
// Background: https://groups.google.com/g/scylladb-dev/c/Aj6rzpEgkSc/m/_41ZeHAuAwAJ.
// Raft is the consensus algorithm used by etcd.
"pre-vote": "true",
},
},
},
// necessary to be able to access the kubeapi server through localhost
APIServer: kubeadm.APIServer{
ControlPlaneComponent: kubeadm.ControlPlaneComponent{
Expand Down

0 comments on commit ae9926e

Please sign in to comment.