https://github.com/gordonby/aks-my-first-cluster
Using GitHub workflows to interact with AKS. 100 level content.
https://github.com/gordonby/aks-my-first-cluster
aks github-workflow
Last synced: 4 months ago
JSON representation
Using GitHub workflows to interact with AKS. 100 level content.
- Host: GitHub
- URL: https://github.com/gordonby/aks-my-first-cluster
- Owner: Gordonby
- Created: 2023-02-09T10:45:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T08:38:42.000Z (over 3 years ago)
- Last Synced: 2025-07-18T05:36:23.752Z (11 months ago)
- Topics: aks, github-workflow
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://azure.github.io/AKS-Construction/?deploy.clusterName=firstcluster&deploy.rg=aks&ops=none&secure=low&cluster.agentCount=1&cluster.enable_aad=true&addons.registry=Basic&addons.monitor=aci&net.vnet_opt=custom&net.nsg=true) 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.

### Identity and Secrets
Use the [Azure Cloud Shell](shell.azure.com) to run the script, as it contains the GitHub CLI and the Azure CLI both required by the script.

#### Azure CLI Output

#### Verifying GitHub secret creation

## 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.

Create the file in your repo

Now run the GitHub action workflow from the `Actions` tab.

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

## 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