Skip to content

Using GitHub workflows to interact with AKS. 100 level content.

Notifications You must be signed in to change notification settings

Gordonby/aks-my-first-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

aks-my-first-cluster

Using GitHub workflows to ;

  • create an Azure Kubernetes Service infrastructure environment.
  • deploy a Web Application to Kubernetes

100 level content

Pre-req's

  • GitHub CLI
  • Azure CLI

Step 1 - Bootstrap

Using AKS Construction I can configure a simple AKS cluster integrated with the right supporting Azure services.

The AKS Construction Accelerator provides a GitHub reusable workflow that we can reference from our own GitHub workflow. For ease, it'll provide all the scripts you'll need to create the Azure AD Identity, and coresponding GitHub secrets to allow GitHub to create Azure resources. To do this, we'll just need to provide the GitHub repository that you'll be using in order to put the correct values in the script. image

Identity and Secrets

Use the Azure Cloud Shell to run the script, as it contains the GitHub CLI and the Azure CLI both required by the script.

image

Azure CLI Output

image

Verifying GitHub secret creation

image

Step 2 - Creating the AKS infrastructure

The AKS Construction tool also provides the yaml workflow you'll need to create in your own repository in order to create the Azure Infrastructure.

image

Create the file in your repo

image

Now run the GitHub action workflow from the Actions tab.

image

Verify the infrastructure creation

You should find that the following Azure infrastructure is created in ~9 minutes.

image

Step 3 - Deploying the Azure Vote App

In the first instance, lets leverage a public container image to run a 2 tier web app in the cluster.

Creating the workflow

About

Using GitHub workflows to interact with AKS. 100 level content.

Topics

Resources

Stars

Watchers

Forks