provisioner

package
v0.0.0-...-dd87fee Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(clusterName string) error

func CreateCluster

func CreateCluster(clusterName string, clusterConfig ClusterConfig, masterConfig MasterConfig, workerConfig WorkerConfig) error

func CreateMaster

func CreateMaster(clusterName string, config MasterConfig) error

func CreateWorker

func CreateWorker(clusterName string, config WorkerConfig) error

func GenerateKubeconfig

func GenerateKubeconfig(name string) error

func GetMasterTemplate

func GetMasterTemplate(k8sVersion string, arch string, isRegisterNode bool) cloudinit.Config

func GetRandomName

func GetRandomName() string

func GetWorkerTemplate

func GetWorkerTemplate(k8sVersion string, arch string) cloudinit.Config

func JoinCluster

func JoinCluster(clusterName, name string) error

func LaunchInstance

func LaunchInstance(clusterName string, config InstanceConfig, cloudinitConfig cloudinit.Config) (string, error)

Types

type ClusterConfig

type ClusterConfig struct {
}

type InstanceConfig

type InstanceConfig struct {
	Name       string
	CPUs       string
	Memory     string
	Disk       string
	K8sVersion string
	Image      string
}

type MasterConfig

type MasterConfig struct {
	InstanceConfig

	IsRegisterNode bool
}

type WorkerConfig

type WorkerConfig struct {
	InstanceConfig

	IsJoinCluster bool
}

Jump to

Keyboard shortcuts

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