yurtinit

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface.
	APIServerAdvertiseAddress = "apiserver-advertise-address"
	//YurttunnelServerAddress flag sets the IP address of Yurttunnel Server.
	YurttunnelServerAddress = "yurt-tunnel-server-address"
	// NetworkingServiceSubnet flag sets the range of IP address for service VIPs.
	NetworkingServiceSubnet = "service-cidr"
	// NetworkingPodSubnet flag sets the range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.
	NetworkingPodSubnet = "pod-network-cidr"
	// OpenYurtVersion flag sets the OpenYurt version for the control plane.
	OpenYurtVersion = "openyurt-version"
	// ImageRepository flag sets the container registry to pull control plane images from.
	ImageRepository = "image-repository"
	// PassWd flag is the password of master server.
	PassWd = "passwd"

	TmpDownloadDir = "/tmp"

	SealerUrlFormat      = "https://github.com/alibaba/sealer/releases/download/%s/sealer-%s-linux-%s.tar.gz"
	DefaultSealerVersion = "v0.8.6"

	InitClusterImage = "%s/openyurt-cluster:%s"
	SealerRunCmd     = "" /* 140-byte string literal not displayed */
)

Variables

View Source
var (
	ValidSealerVersions = []string{
		"v0.8.6",
	}
)

Functions

func CheckAndInstallSealer

func CheckAndInstallSealer() error

CheckAndInstallSealer install sealer, skip install if it exists

func NewCmdInit

func NewCmdInit() *cobra.Command

NewCmdInit use tool sealer to initializer a master of OpenYurt cluster. It will deploy all openyurt components, such as yurt-app-manager, yurt-tunnel-server, etc.

func NewInitializerWithOptions

func NewInitializerWithOptions(o *InitOptions) *clusterInitializer

Types

type InitOptions

type InitOptions struct {
	AdvertiseAddress        string
	YurttunnelServerAddress string
	ServiceSubnet           string
	PodSubnet               string
	ImageRepository         string
	OpenYurtVersion         string
}

InitOptions defines all the init options exposed via flags by yurtadm init.

func NewInitOptions

func NewInitOptions() *InitOptions

func (*InitOptions) Validate

func (o *InitOptions) Validate() error

Jump to

Keyboard shortcuts

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