K8sManifestResource
Classsealednet10.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>
Remarks
Section titled Remarks 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. Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesParentget Gets the parent resource of type
K3sClusterResource. Pathgetstring Gets the absolute host path to the YAML file, plain directory, or Kustomize directory that contains the manifests to apply.