Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Container orchestration with .NET Aspire

.NET Aspire provides an easy and simple way to orchestrate containers without using docker network or docker compose. It even provides a way to deploy all the apps to a Kubernetes cluster.

Find the repository root

# Bazh/Zshs
REPOSITORY_ROOT=$(git rev-parse --show-toplevel)
# PowerShell
$REPOSITORY_ROOT = git rev-parse --show-toplevel

Container orchestration with .NET Aspire through eShopLite.AppHost

  1. Make sure you have been running Docker Desktop. If not, start Docker Desktop.

  2. Move to the aspire directory.

    cd $REPOSITORY_ROOT/aspire
  3. Run the following command to let .NET Aspire orchestrate all apps at once.

    dotnet watch run --project ./src/eShopLite.AppHost
  4. Checkout the dashboard.

  5. Open the browser and navigate to http://localhost:5000 to see the app running.

Deployment to a Kubernetes Cluster through .NET Aspire

  1. Make sure you have been running Docker Desktop and enabled Kubernetes. If not, start Docker Desktop and Kubernetes.

  2. Move to the aspire directory.

    cd $REPOSITORY_ROOT/aspire
  3. Follow the instructions in order:

    1. Setup local Kubernetes dashboard
    2. Deploy the apps to the local Kubernetes cluster