KubernetesEnvironmentExtensions.AddKubernetesEnvironment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a Kubernetes environment to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Kubernetes.KubernetesEnvironmentResource> AddKubernetesEnvironment(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddKubernetesEnvironment : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Kubernetes.KubernetesEnvironmentResource>
<Extension()>
Public Function AddKubernetesEnvironment (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of KubernetesEnvironmentResource)
Parameters
- name
- String
The name of the Kubernetes environment resource.
Returns
A reference to the IResourceBuilder<T>.