k3d

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK3DCluster

func CreateK3DCluster(ctx context.Context, name string)

Does the following :

(1) Creates a K3D cluster with the given name, if it doesn't already exist.

(2) Creates 2 kubeconfig files, which can be used to access the cluster, from inside the
		KubeAid Bootstrap Script container, or from the user's host machine.

(3) Ensures that each master node has the node-role.kubernetes.io/control-plane= label,
		just like it is for a Vanilla Kubernetes cluster.

Keep in mind :

The created K3D cluster and the KubeAid core container, must be running in the same network.
Otherwise, access to the K3D cluster will break.

(1) From inside the container, we can access the K3D cluster's API server using
		https://k3d-management-cluster-server-0:6443.

(2) And from outside the container, we can use https://0.0.0.0:<whatever the random port is>.

func DeleteK3DCluster added in v0.13.2

func DeleteK3DCluster(ctx context.Context)

func GetMaxK3sSupportedK8sVersion added in v0.21.0

func GetMaxK3sSupportedK8sVersion(ctx context.Context) string

Returns the max K8s version supported by K3s.

Types

type GitHubRelease added in v0.21.0

type GitHubRelease struct {
	TagName string `json:"tag_name"`
}

type K3DConfigTemplateValues

type K3DConfigTemplateValues struct {
	Name,
	K8sVersion,
	K3sVersion string

	WorkloadIdentity *WorkloadIdentity
}

type WorkloadIdentity added in v0.8.0

type WorkloadIdentity struct {
	ServiceAccountIssuerURL,

	SSHPublicKeyFilePath,
	SSHPrivateKeyFilePath string
}

Jump to

Keyboard shortcuts

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