Challenge 1 - Setup
December 4, 2020 ยท View on GitHub
Prerequisites
- Your laptop: Windows/Linux/OSX
- Bash Shell (e.g. WSL)
- Your Azure Subscription
Introduction
The first challenge is to setup your local environment as well as the AKS cluster you will be running on.
Description
Install each of the CLI tools and ensure you can login to each of the online services. We will be using these later in the challenges
All challenges will be run using Bash.
Challenge
- Latest Azure CLI
- Verified with 2.7.0
- Install Docker
- Install Helm 3
- Create a Github Account
- Create an ACR
- Create an AKS cluster with the following:
- System pool with 1 Standard_DS2_v2
- User pool with 1 Standard_DS2_v2
- Cluster Autoscaling enabled
- Managed Identity enabled
- Attach ACR to the AKS cluster
- Install Curl
- Install JQ
- [OPTIONAL] Install kubectx/kubens/kube-aliases
Success Criteria
- Running
docker versionshows your Docker client and server version - Running
helm versionshows the Helm version - You have logged into Github
- You have your own Docker Hub account
- Running
kubectl get nodesshows your AKS System and User pools - Running
az acr import -n $ACR_NAME --source docker.io/library/nginx:latest --image nginx:v1copies an image to your ACR instance - Running
curl -s https://api.github.com/users/octocat/repos | jq '.'shows you a pretty-printed JSON doc - [OPTIONAL] Running
kubectxlets you switch between K8S clusters - [OPTIONAL] Running
kubenslets you switch between namespaces - [OPTIONAL] Running
ksysgposhows all pods in your system namespace