Gå til indhold
Docs Try Aspire
Docs Try

Deploy to Kubernetes

Dette indhold er ikke tilgængeligt i dit sprog endnu.

Use aspire publish or aspire deploy to take your Aspire application to Kubernetes. Aspire uses the Kubernetes-targeted environments in your AppHost to determine how each compute resource maps to Kubernetes objects, then generates Helm charts or provisions infrastructure depending on the target you choose.

To understand how Aspire deployment works across all targets, see the Deployment overview.

Aspire supports two Kubernetes deployment targets:

When you publish or deploy, Aspire translates your application model into Kubernetes-native resources:

Aspire resourceKubernetes resource
Project resourcesDeployments or StatefulSets
Container resourcesDeployments or StatefulSets
Connection stringsConfigMaps and Secrets
Environment variablesConfigMaps and Secrets
EndpointsServices
VolumesPersistentVolumes and PersistentVolumeClaims

Both Kubernetes targets support aspire publish. The key difference is whether the target also supports aspire deploy:

Targetaspire publishaspire deploy
KubernetesGenerates Helm charts you apply with helm or CIDeploys to the current kubectl context using helm install
AKSGenerates Helm charts and Bicep infrastructureProvisions Azure resources and deploys in a single command

For more on the pipeline model and how publish and deploy relate, see Pipelines and app topology.