/aks-devops-demo

A full AKS DevOps demo using Azure Pipelines, Helm and ACR.

Primary LanguageHTML

Microservice DevOps

Intro

Name: Chris Wiederspan
Role: Microsoft Azure App Dev Specialist
Email: chris.wiederspan@microsoft.com

Prerequisites

Setup a Service Principal for use with AKS

Based on this guidance, we will start by setting up a Service Principal that we'll use when creating an Azure AKS cluster.

az login
az ad sp create-for-rbac --name <YOUR_SP_NAME>

You'll want to make a copy of the results, specifically the appId and password, as shown below.

Credential screenshot

Azure Resource Setup Using Terraform

We will use Terraform to create a Resource Group, Azure Container Registry and an AKS Cluster. Click here to read more about Terraform and the Azure Resource Providers that it provides.

cd Terraform/pets  
terraform init  
terraform apply  

You can expect this process to take between 10 to 15 minutes, mostly because AKS takes a while to provision in Azure.

The Project

The code and project itself is just an out-of-the-box .NET Core 2.x Web API project that was created using the Project... New... functionality in Visual Studio. The code itself is fairly irrelevant to the discussion.

Key Files

Terraform Pets
Terraform Cattle

Microservices Reading

Overview
Building Microservices Book
Sam Newman Video