k3s

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageNotFound = errors.New("image not found by name")
View Source
var ErrInvalidNodeCount = errors.New("invalid amount of nodes, must be > 0")
View Source
var ErrPrivateNetwork = errors.New("privateNetworkName is empty (required if public is set to false)")
View Source
var ErrPublicNetwork = errors.New("public network infos are missing")

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	pulumi.ResourceState
	ClusterArgs ClusterArgs         `pulumi:"ClusterArgs"`
	Kubeconfig  pulumi.StringOutput `pulumi:"Kubeconfig"`
	SSHKey      pulumi.StringOutput `pulumi:"SSHKey"`
}

func NewCluster

func NewCluster(ctx *pulumi.Context, name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster is the pulumi program to create a new k3s cluster on top of OpenStack.

type ClusterArgs

type ClusterArgs struct {
	AdditionalPorts    []int
	MachineFlavor      string
	NodeCount          int
	VolumeSize         int
	MachineImage       string
	MachineUser        string
	PrivateNetworkName string
	Public             bool
	PublicIPPool       string
	PublicNetworkName  string
	PublicNetworkID    string
}

Jump to

Keyboard shortcuts

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