recipe

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlanKey for storing plans as annotations on Nodes
	PlanKey string = "wks.weave.works/node-plan"
)

Variables

This section is empty.

Functions

func BuildBasePlan

func BuildBasePlan(pkgType resource.PkgType) plan.Resource

BuildBasePlan creates a plan for installing the base building blocks for the node

func BuildCRIPlan

BuildCRIPlan creates a plan for installing a CRI. Currently, Docker is the only supported CRI

func BuildConfigPlan

func BuildConfigPlan(files []*resource.File) plan.Resource

BuildConfigPlan creates a plan for handling the configuration files

func BuildK8SPlan

func BuildK8SPlan(kubernetesVersion string, kubeletNodeIP string, seLinuxInstalled, setSELinuxPermissive, disableSwap, lockYUMPkgs bool, pkgType resource.PkgType, cloudProvider string, extraArgs map[string]string) plan.Resource

BuildK8SPlan creates a plan for running kubernetes on a node

func BuildKubeadmPrejoinPlan

func BuildKubeadmPrejoinPlan(kubernetesVersion string, useIPTables bool) plan.Resource

BuildKubeadmPrejoinPlan creates a sub-plan to prepare for running kubeadm join.

func BuildUpgradePlan

func BuildUpgradePlan(pkgType resource.PkgType, k8sVersion string, ntype NodeType) (plan.Resource, error)

BuildUpgradePlan creates a sub-plan to run upgrade using respective package management commands.

Types

type NodeType

type NodeType int
const (
	OriginalMaster NodeType = iota
	SecondaryMaster
	Worker
)

Jump to

Keyboard shortcuts

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