kubernetesk8s.io/kubernetes/cmd/kubeadm/app/node Index | Files

package node

import "k8s.io/kubernetes/cmd/kubeadm/app/node"

Index

Functions

func PerformTLSBootstrap

func PerformTLSBootstrap(connection *ConnectionDetails) (*clientcmdapi.Config, error)

PerformTLSBootstrap executes a certificate signing request with the provided connection details.

func RetrieveTrustedClusterInfo

func RetrieveTrustedClusterInfo(s *kubeadmapi.NodeConfiguration) (*kubeadmapi.ClusterInfo, error)

Types

type ConnectionDetails

type ConnectionDetails struct {
	CertClient *certclient.CertificatesClient
	Endpoint   string
	CACert     []byte
	NodeName   types.NodeName
}

ConnectionDetails represents a master API endpoint connection

func EstablishMasterConnection

func EstablishMasterConnection(s *kubeadmapi.NodeConfiguration, clusterInfo *kubeadmapi.ClusterInfo) (*ConnectionDetails, error)

EstablishMasterConnection establishes a connection with exactly one of the provided API endpoints. The function builds a client for every endpoint and concurrently keeps trying to connect to any one of the provided endpoints. Blocks until at least one connection is established, then it stops the connection attempts for other endpoints.

Source Files

bootstrap.go csr.go discovery.go

Version
v1.5.1-beta.0
Published
Dec 13, 2016
Platform
js/wasm
Imports
20 packages
Last checked
4 minutes ago

Tools for package owners.