项目作者: roketworks

项目描述 :
Samples & Demo of Building & Debugging dotnet core apps on Kubernetes with Azure Dev Spaces
高级语言: JavaScript
项目地址: git://github.com/roketworks/dotnet-meetup-devspaces.git
创建时间: 2018-10-09T14:06:07Z
项目社区:https://github.com/roketworks/dotnet-meetup-devspaces

开源协议:

下载


Building and Debugging Dotnet Core services on Kubernetes using Azure Dev Spaces

Slides & code samples from dotnet meetup Belfast (11/09/2018)

Running samples

Prerequisites

  • A azure account and active subscription
  • Azure CLI (2.0.43 or above)
  • Visual Studio Code
  • Azure Dev Spaces Extension for Visual Studio Code

Provision Services

First you will need to create your AKS (Azure Kubernetes Service) cluster, which can be done by running the following commands:

  1. az group create --name DevSpacesDemo --location westeurope
  2. 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
  3. 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

Prepare Services

Run the following command in the frontend directory:

  1. azds prep --public

This will also produce configuration that exposes a public endpoint for this service.

Run the following command in the webapi directory:

  1. azds prep

As we don’t need a public endpoint for this service, we can remove the --public flag.

References