bootstrap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBootstrap

func NewBootstrap() *cobra.Command

Types

type Bootstrap

type Bootstrap struct {
	Force             bool   `usage:"Run bootstrap even if already bootstrapped" short:"f" env:"LLMOS_BOOTSTRAP_FORCE"`
	Config            string `usage:"Custom config file path" default:"/etc/llmos/config.yaml" short:"c" env:"LLMOS_CONFIG_FILE"`
	DataDir           string `usage:"Path to llmos state dir" default:"/var/lib/llmos" env:"LLMOS_DATA_DIR"`
	Server            string `usage:"Server url to connect to" env:"LLMOS_SERVER"`
	Role              string `usage:"The node role to join the cluster" enum:"server,agent" short:"r" env:"LLMOS_ROLE"`
	Token             string `usage:"Token to use for join the cluster" env:"LLMOS_TOKEN"`
	ClusterInit       bool   `usage:"Bootstrap cluster-init role" env:"LLMOS_CLUSTER_INIT"`
	KubernetesVersion string `usage:"Default kubernetes version to bootstrap" env:"LLMOS_KUBERNETES_VERSION" default:"v1.31.3+k3s1"`
	Mirror            string `usage:"Specify the mirror registry for installation" enum:"cn" env:"LLMOS_MIRROR"`
}

Bootstrap defines the command to bootstrap LLMOS

func (*Bootstrap) Run

func (b *Bootstrap) Run(cmd *cobra.Command, _ []string) error

Jump to

Keyboard shortcuts

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