Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPodSubnet

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
func (K3sClusterResource) WithPodSubnet(cidr string) K3sClusterResource

Signature

methodWithPodSubnetbuilder
Sets the CIDR range for pod IP addresses (--cluster-cidr).
WithPodSubnet(cidr string) K3sClusterResource
cidrstringThe pod subnet in CIDR notation, e.g. 10.42.0.0/16.
K3sClusterResource

The same builder, for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: