Documentation ¶
Index ¶
- func CheckLocalEtcdClusterStatus(client clientset.Interface, certificatesDir string) error
- func CreateHostedEtcd(client clientset.Interface, namespace, manifestDir string, patchesDir string, ...) error
- func GetEtcdPodSpec(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint, ...) v1.Pod
- func GetEtcdPodTemplateSpec(cfg *kubeadmapi.ClusterConfiguration, initialCluster []etcdutil.Member) v1.PodTemplateSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLocalEtcdClusterStatus ¶
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.