etcd

package
v1.20.11-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 19 Imported by: 89

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLocalEtcdClusterStatus added in v1.13.0

func CheckLocalEtcdClusterStatus(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration) error

CheckLocalEtcdClusterStatus verifies health state of local/stacked etcd cluster before installing a new etcd member

func CreateLocalEtcdStaticPodManifestFile

func CreateLocalEtcdStaticPodManifestFile(manifestDir, patchesDir string, nodeName string, cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint) error

CreateLocalEtcdStaticPodManifestFile will write local etcd static pod manifest file. This function is used by init - when the etcd cluster is empty - or by kubeadm upgrade - when the etcd cluster is already up and running (and the --initial-cluster flag have no impact)

func CreateStackedEtcdStaticPodManifestFile added in v1.13.0

func CreateStackedEtcdStaticPodManifestFile(client clientset.Interface, manifestDir, patchesDir string, nodeName string, cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint) error

CreateStackedEtcdStaticPodManifestFile will write local etcd static pod manifest file for an additional etcd member that is joining an existing local/stacked etcd cluster. Other members of the etcd cluster will be notified of the joining node in beforehand as well.

func GetEtcdPodSpec

func GetEtcdPodSpec(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint, nodeName string, initialCluster []etcdutil.Member) v1.Pod

GetEtcdPodSpec returns the etcd static Pod actualized to the context of the current configuration NB. GetEtcdPodSpec methods holds the information about how kubeadm creates etcd static pod manifests.

func RemoveStackedEtcdMemberFromCluster added in v1.14.0

func RemoveStackedEtcdMemberFromCluster(client clientset.Interface, cfg *kubeadmapi.InitConfiguration) error

RemoveStackedEtcdMemberFromCluster will remove a local etcd member from etcd cluster, when reset the control plane node.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL