bootstrap

package
v0.0.0-...-d91ab75 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package bootstrap provides tools to build the initial bootstrap Talos cluster without CAPI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

Cluster sets up initial Talos cluster.

func NewCluster

func NewCluster(ctx context.Context, options Options) (*Cluster, error)

NewCluster creates new bootstrap Talos cluster.

func (*Cluster) BridgeIP

func (cluster *Cluster) BridgeIP() netip.Addr

BridgeIP returns the IP of the gateway (bridge).

func (*Cluster) KubernetesClient

func (cluster *Cluster) KubernetesClient() taloscluster.K8sProvider

KubernetesClient returns k8s client access adapter.

func (*Cluster) Name

func (cluster *Cluster) Name() string

Name returns cluster name.

func (*Cluster) Nodes

func (cluster *Cluster) Nodes() []provision.NodeInfo

Nodes return information about PXE VMs.

func (*Cluster) Setup

func (cluster *Cluster) Setup(ctx context.Context) error

Setup the bootstrap cluster.

func (*Cluster) SideroComponentsIP

func (cluster *Cluster) SideroComponentsIP() netip.Addr

SideroComponentsIP returns the IP of the master node.

func (*Cluster) TearDown

func (cluster *Cluster) TearDown(ctx context.Context) error

TearDown the bootstrap cluster.

type Options

type Options struct {
	Name string
	CIDR string

	Vmlinuz, Initramfs string
	InstallerImage     string
	CNIBundleURL       string

	TalosctlPath string

	RegistryMirrors []string

	BootstrapMemMB  int64
	BootstrapCPUs   int64
	BootstrapDiskGB int64

	VMNodes int

	VMMemMB  int64
	VMCPUs   int64
	VMDiskGB int64

	VMDefaultBootOrder string
}

Options for the bootstrap cluster.

Jump to

Keyboard shortcuts

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