Version: v0.0.0-...-afa114b Latest Latest

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

Go to latest
Published: Aug 16, 2021 License: MPL-2.0 Imports: 23 Imported by: 0



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



This section is empty.


This section is empty.


This section is empty.


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() net.IP

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) Setup

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

Setup the bootstrap cluster.

func (*Cluster) SideroComponentsIP

func (cluster *Cluster) SideroComponentsIP() net.IP

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

	MemMB  int64
	CPUs   int64
	DiskGB int64

Options for the bootstrap cluster.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL