Skip to main content

Deploying to Kubernetes

Finally, we can deploy our application to Kubernetes. Thankfully Aspirate makes it extremely easy!

First run minikube using:

minikube start

Then navigate to the AppHost project and generate all the necessary files using:

aspirate generate

Now, because the container Image for the API is stored locally and not a container registry so we need to manually push it to minikube. We can do this by running:

minikube image load dometrain-api:latest

Time to deploy. We can do that by running:

aspirate apply

There is a small issue with the Cosmos DB connection string. Let's update it manually for now.

And after all that, let's take everything down!

aspirate destroy