Aspire.Hosting.Azure.Kubernetes
Official
📦 Aspire.Hosting.Azure.Kubernetesv13.4.0-preview.1.26281.1814Functions
3Types
3 types and 0 members
Types
Functions
method
addAzureKubernetesEnvironmentbuilderAdds an Azure Kubernetes Service (AKS) environment to the distributed application. This provisions an AKS cluster and configures it as a Kubernetes compute environment.
addAzureKubernetesEnvironment(name: string): AzureKubernetesEnvironmentResourcemethod
addCertManagerbuilderInstalls cert-manager into an AKS environment
addCertManager(name: string, chartVersion?: string): CertManagerResourcemethod
addGatewaybuilderAdds a Kubernetes Gateway API Gateway resource to the application model, associated with the inner Kubernetes environment of the specified AKS environment.
addGateway(name: string): KubernetesGatewayResourcemethod
addHelmChartbuilderAdds an external Helm chart to be installed in the AKS environment's inner Kubernetes environment. The chart is installed via `helm upgrade --install` as a pipeline step after the main application Helm chart is deployed.
addHelmChart(name: string, chartReference: string, chartVersion: string): KubernetesHelmChartResourcemethod
addIngressbuilderAdds a Kubernetes Ingress resource to the application model, associated with the inner Kubernetes environment of the specified AKS environment. The ingress generates a `networking.k8s.io/v1 Ingress` resource in the Helm chart output at publish time.
addIngress(name: string): KubernetesIngressResourcemethod
addLoadBalancerbuilderAdds an Azure Application Gateway for Containers (AGC) `ApplicationLoadBalancer` to this AKS environment, bound to the supplied delegated subnet. Returns a resource builder that can be passed to `gateway.WithLoadBalancer(lb)` / `ingress.WithLoadBalancer(lb)` to route traffic through this load balancer.
addLoadBalancer(name: string, subnet: AzureSubnetResource): AzureKubernetesLoadBalancerResourcemethod
addNodePoolbuilderAdds a node pool to the AKS cluster.
addNodePool(name: string, vmSize?: string, minCount?: number, maxCount?: number): AksNodePoolResourcemethod
withContainerRegistrybuilderConfigures the AKS environment to use a specific Azure Container Registry for image storage. When set, this replaces the auto-created default container registry.
withContainerRegistry(registry: AzureContainerRegistryResource): AzureKubernetesEnvironmentResourcemethod
withLoadBalancerbuilderRoutes a Kubernetes Gateway through an AGC ApplicationLoadBalancer
withLoadBalancer(loadBalancer: AzureKubernetesLoadBalancerResource): KubernetesGatewayResourcemethod
withLoadBalancerbuilderRoutes a Kubernetes Ingress through an AGC ApplicationLoadBalancer
withLoadBalancer(loadBalancer: AzureKubernetesLoadBalancerResource): KubernetesIngressResourcemethod
withSubnetbuilderConfigures the AKS cluster to use a VNet subnet
withSubnet(subnet: AzureSubnetResource): AzureKubernetesEnvironmentResourcemethod
withSubnetbuilderConfigures an AKS node pool to use a specific VNet subnet
withSubnet(subnet: AzureSubnetResource): AksNodePoolResourcemethod
withSystemNodePoolbuilderReplaces the default system node pool with a customized configuration.
withSystemNodePool(vmSize?: string, minCount?: number, maxCount?: number): AzureKubernetesEnvironmentResourcemethod
withWorkloadIdentitybuilderEnables or disables workload identity on the AKS environment, allowing pods to authenticate to Azure services using federated credentials.
withWorkloadIdentity(enabled?: boolean): AzureKubernetesEnvironmentResource