package etcd
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/etcd"
Index ¶
- func CheckLocalEtcdClusterStatus(client clientset.Interface, cfg *kubeadmapi.InitConfiguration) error
- func CreateLocalEtcdStaticPodManifestFile(manifestDir string, cfg *kubeadmapi.InitConfiguration) error
- func CreateStackedEtcdStaticPodManifestFile(client clientset.Interface, manifestDir string, cfg *kubeadmapi.InitConfiguration) error
- func GetEtcdPodSpec(cfg *kubeadmapi.InitConfiguration, initialCluster []etcdutil.Member) v1.Pod
Functions ¶
func CheckLocalEtcdClusterStatus ¶
func CheckLocalEtcdClusterStatus(client clientset.Interface, cfg *kubeadmapi.InitConfiguration) error
CheckLocalEtcdClusterStatus verifies health state of local/stacked etcd cluster before installing a new etcd member
func CreateLocalEtcdStaticPodManifestFile ¶
func CreateLocalEtcdStaticPodManifestFile(manifestDir string, cfg *kubeadmapi.InitConfiguration) 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 ¶
func CreateStackedEtcdStaticPodManifestFile(client clientset.Interface, manifestDir string, cfg *kubeadmapi.InitConfiguration) 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.InitConfiguration, initialCluster []etcdutil.Member) v1.Pod
GetEtcdPodSpec returns the etcd static Pod actualized to the context of the current InitConfiguration NB. GetEtcdPodSpec methods holds the information about how kubeadm creates etcd static pod manifests.
Source Files ¶
local.go
- Version
- v1.13.5
- Published
- Mar 22, 2019
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 4 minutes ago –
Tools for package owners.