Samples & Demo of Building & Debugging dotnet core apps on Kubernetes with Azure Dev Spaces
Slides & code samples from dotnet meetup Belfast (11/09/2018)
First you will need to create your AKS (Azure Kubernetes Service) cluster, which can be done by running the following commands:
az group create --name DevSpacesDemo --location westeurope
az aks create -g DevSpacesDemo -n AksDevSpacesDemo --location westeurope --kubernetes-version 1.11.2 --enable-addons http_application_routing -c 1 --disable-rbac -p devspaces-demo
az aks use-dev-spaces -g DevSpacesDemo -n AksDevSpacesDemo
N.B. Azure Dev spaces currently does not support the North Europe region and the minimum node size supported for AKS is Standard_A1
Run the following command in the frontend
directory:
azds prep --public
This will also produce configuration that exposes a public endpoint for this service.
Run the following command in the webapi
directory:
azds prep
As we don’t need a public endpoint for this service, we can remove the --public
flag.