Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

K3sClusterResource.WithDisabledComponent

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
type K3sClusterResource interface {
// ... omitted for brevity
WithDisabledComponent(component string) K3sClusterResource
}

Signature

methodWithDisabledComponentbuilder
Disables a built-in k3s component (--disable=<component>).
WithDisabledComponent(component string) K3sClusterResource
componentstringThe component name to disable. Common values include traefik, servicelb, metrics-server, coredns, and local-storage. Call this method multiple times to disable more than one component.
K3sClusterResource

The same builder, for chaining.

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

Defined on

This method is defined on the following type: