K3sClusterResource Constructors
ClassConstructors1 member
Represents a k3s Kubernetes cluster running as a privileged container resource. Injects the cluster's kubeconfig into a dependent resource.
- Host processes receive
KUBECONFIG=<host-path>/local/kubeconfig.yaml. - Containers receive
KUBECONFIG=/tmp/k3s-kubeconfig.yamland a file-level bind-mount of the container-network kubeconfig variant. Both are applied by theBeforeStartEventsubscriber registered inAddK3sCluster.
Constructor(string)Section titled Constructor(string) Represents a k3s Kubernetes cluster running as a privileged container resource. Injects the cluster's kubeconfig into a dependent resource.
- Host processes receive
KUBECONFIG=<host-path>/local/kubeconfig.yaml. - Containers receive
KUBECONFIG=/tmp/k3s-kubeconfig.yamland a file-level bind-mount of the container-network kubeconfig variant. Both are applied by theBeforeStartEventsubscriber registered inAddK3sCluster.
public sealed class K3sClusterResource{ public K3sClusterResource( string name) { // ... }}Parameters
namestringThe resource name.