Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithK3sVersion

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
func (K3sClusterResource) WithK3sVersion(tag string) K3sClusterResource

Signature

methodWithK3sVersionbuilder
Sets the k3s image version used by the cluster server and all its agent nodes.
WithK3sVersion(tag string) K3sClusterResource
tagstringThe k3s container image tag, e.g. v1.32.3-k3s1. Must follow the v{major}.{minor}.{patch}-k3s{n} format.
K3sClusterResource

The same builder, for chaining.

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

Applies to

This method applies to the following types: