yurtinit

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 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.6.1"

	InitClusterImage = "%s/openyurt-cluster:%s"
	SealerRunCmd     = "sealer apply -f %s/Clusterfile"

	OpenYurtClusterfile = `` /* 677-byte string literal not displayed */

)

Variables

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

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
	Password                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