withAgentCount

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
interface K3sClusterResource {
// ... omitted for brevity
withAgentCount(count: number): K3sClusterResource;
}

Signature

methodwithAgentCountbuilder
Sets the number of k3s agent (worker) nodes to add to the cluster.
withAgentCount(count: number): K3sClusterResource
countnumberThe number of agent nodes. Zero or greater. Defaults to `0` (single-node cluster — the server node acts as both control-plane and worker).
K3sClusterResource

Applies to

This method applies to the following types: