Watch Aspire live streamsDocsTry Aspire

K8sManifestResource

Classsealednet10.0
📦 CommunityToolkit.Aspire.Hosting.K3s v13.5.0
Represents a Kubernetes manifest (or Kustomize overlay) applied to the parent k3s cluster.
namespace Aspire.Hosting.ApplicationModel;
public sealed class K8sManifestResource
: Aspire.Hosting.ApplicationModel.ContainerResource,
Aspire.Hosting.ApplicationModel.IResource,
Aspire.Hosting.ApplicationModel.IResourceWithParent,
Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.K3sClusterResource>
{
// ...
}
ContainerResourceIResourceIResourceWithParentIResourceWithParent<K3sClusterResource>
The resource runs as an alpine/kubectl container. It polls until the cluster kubeconfig is available, then applies the manifests with kubectl apply --server-side and waits for any CRDs to reach the Established condition before exiting with code 0. Use WaitForCompletion(manifest) on resources that depend on these manifests being applied.
View all constructors
View all properties