etcd

package
v0.0.0-...-35c3564 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLocalEtcdClusterStatus

func CheckLocalEtcdClusterStatus(client clientset.Interface, certificatesDir string) error

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

func CreateHostedEtcd

func CreateHostedEtcd(client clientset.Interface, namespace, manifestDir string, patchesDir string, cfg *kubeadmapi.ClusterConfiguration, isDryRun bool) error

CreateHostedEtcd will create a hosted etcd instance in the cluster. 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 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 GetEtcdPodTemplateSpec

func GetEtcdPodTemplateSpec(cfg *kubeadmapi.ClusterConfiguration, initialCluster []etcdutil.Member) v1.PodTemplateSpec

GetPodTemplateSpec returns the etcd's pod template spec actualized to the context of the current configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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