K3sClusterResource.WithAgentCount
Method
type K3sClusterResource interface { // ... omitted for brevity WithAgentCount(count float64) K3sClusterResource}Signature
method
WithAgentCount builderSets the number of k3s agent (worker) nodes to add to the cluster.
WithAgentCount(count float64) K3sClusterResourceParameters
countfloat64The number of agent nodes. Zero or greater. Defaults to 0 (single-node cluster — the server node acts as both control-plane and worker).Returns
K3sClusterResource The same builder, for chaining.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: