kubernetes

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DisableNodeControllerJobNameBase is the prefix of the DisableNodeControllerJob name
	DisableNodeControllerJobNameBase = "yurtctl-disable-node-controller"
)

Variables

View Source
var (
	// PropagationPolicy defines the propagation policy used when deleting a resource
	PropagationPolicy = metav1.DeletePropagationBackground

	ErrClusterVersionEmpty = errors.New("cluster version should not be empty")
)

Functions

func CheckAndInstallKubelet

func CheckAndInstallKubelet(kubernetesResourceServer, clusterVersion string) error

CheckAndInstallKubelet install kubelet and kubernetes-cni, skip install if they exist.

func GetKubernetesVersionFromCluster

func GetKubernetesVersionFromCluster(client kubernetes.Interface) (string, error)

GetKubernetesVersionFromCluster get kubernetes cluster version from master.

func RunJobAndCleanup

func RunJobAndCleanup(cliSet *kubernetes.Clientset, job *batchv1.Job, timeout, period time.Duration, waitForTimeout bool) error

RunJobAndCleanup runs the job, wait for it to be complete, and delete it

func SetKubeletCaCert

func SetKubeletCaCert(config *clientcmdapi.Config) error

SetKubeletCaCert write ca.crt for join node.

func SetKubeletConfigForNode

func SetKubeletConfigForNode() error

SetKubeletConfigForNode write kubelet.conf for join node.

func SetKubeletService

func SetKubeletService() error

SetKubeletService configure kubelet service.

func SetKubeletUnitConfig

func SetKubeletUnitConfig() error

SetKubeletUnitConfig configure kubelet startup parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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