Skip to content
DocsTry Aspire
DocsTry

K3sClusterOptions Properties

ClassProperties12 members
Advanced options for K3sBuilderExtensions.AddK3sCluster.
Gets or sets the number of agent (worker) nodes. Defaults to 0 (single-node cluster).
public int AgentCount { get; set; }
ClusterCidrSection titled ClusterCidrnullablestring?
Gets or sets the pod IP address range in CIDR notation ( --cluster-cidr). Defaults to k3s built-in value of 10.42.0.0/16 when null.
public string? ClusterCidr { get; set; }
DisabledComponentsSection titled DisabledComponentsIList<string>
Gets the list of built-in k3s components to disable (each passed as --disable=<component>).
public IList<string> DisabledComponents { get; }
Common values: traefik, coredns, local-storage. Note that servicelb and metrics-server are already disabled by default.
ExtraArgsSection titled ExtraArgsIList<string>
Gets the list of raw arguments appended verbatim to the k3s server command.
public IList<string> ExtraArgs { get; }
Gets or sets the Helm installer image name. Defaults to alpine/helm.
public string HelmImage { get; set; }
HelmRegistrySection titled HelmRegistrystring
Gets or sets the container registry for the Helm installer image. Defaults to docker.io.
public string HelmRegistry { get; set; }
Gets or sets the Helm installer image tag. Defaults to 3.17.3.
public string HelmTag { get; set; }
ImageTagSection titled ImageTagnullablestring?
Gets or sets the k3s container image tag, e.g. v1.32.3-k3s1. When null the version bundled with this package is used.
public string? ImageTag { get; set; }
KubectlImageSection titled KubectlImagestring
Gets or sets the kubectl image name. Defaults to alpine/kubectl.
public string KubectlImage { get; set; }
KubectlRegistrySection titled KubectlRegistrystring
Gets or sets the container registry for the kubectl image. Defaults to docker.io.
public string KubectlRegistry { get; set; }
Gets or sets the kubectl image tag. Defaults to 1.36.0.
public string KubectlTag { get; set; }
ServiceCidrSection titled ServiceCidrnullablestring?
Gets or sets the Service cluster IP address range in CIDR notation ( --service-cidr). Defaults to k3s built-in value of 10.43.0.0/16 when null.
public string? ServiceCidr { get; set; }