A microhack to learn more about the CI/CD process for AKS using Github Actions.
This microhack consists of 5 steps:
- Setup the required infrastructure
- Update a raw Kubernetes deployment (CD only)
- Update an Helm chart (CD only)
- Build an image and update a Helm chart (CI and CD)
- Build an image and do a blue/green deployment (CI and CD)
Each step is contained in a folder, with the required explanation.
It is recommended to fork this repository, and then iteratively build your own GitHub actions. After forking the repo, you can delete the .github/workflows folder if you want to build the workflows from scratch.
A totally optional add-on to this Microhack is the clusterinfo tool built by Mark Kizhnerman. This tool can show you what is deployed on your cluster, and will show you live updates.
To install the tool, follow the following steps:
- Download the tool (link will be shared while running the microhack)
- Extract zip file
- Navigate to helm chart directory
- Install using helm (
helm install clusterinfo .
) - Port-forward the clusterinfo service (
kubectl port-forward svc/clusterinfo 5252 -n clusterinfo
) - If running in localhost, browse to http://localhost:5252. If running in cloud shell, expose the 5252 in cloud shell.
Things to look for in the clusterinfo tool
- Pods supporting a service and version of that pod
- Pods in a deployment and how the deployment updates
- (only in blue-green sample) color coded pods in the clusterinfo tool.