Watch Aspire live streamsDocsTry Aspire

withNamespace

Method
📦 CommunityToolkit.Aspire.Hosting.Kind v13.5.1-beta.895
interface K8sManifestResource {
// ... omitted for brevity
withNamespace(namespace: string): KindDeployedResource;
}

Signature

methodwithNamespacebuilder
Sets the Kubernetes namespace for the deployment.
withNamespace(namespace: string): KindDeployedResource
namespacestringThe Kubernetes namespace.
KindDeployedResource

Applies to

This method applies to the following types: