Using GitHub workflows to ;
- create an Azure Kubernetes Service infrastructure environment.
- deploy a Web Application to Kubernetes
100 level content
- GitHub CLI
- Azure CLI
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.
Use the Azure Cloud Shell to run the script, as it contains the GitHub CLI and the Azure CLI both required by the script.
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.
You should find that the following Azure infrastructure is created in ~9 minutes.
In the first instance, lets leverage a public container image to run a 2 tier web app in the cluster.