Challenge 1 - Setup

Next Challenge>

Prerequisites

  1. Your laptop: Windows/Linux/OSX
  2. Bash Shell (e.g. WSL)
  3. 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

  1. Latest Azure CLI
    • Verified with 2.7.0
  2. Install Docker
  3. Install Helm 3
  4. Create a Github Account
  5. Create an ACR
  6. 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
  7. Attach ACR to the AKS cluster
  8. Install Curl
  9. Install JQ
  10. [OPTIONAL] Install kubectx/kubens/kube-aliases

Success Criteria

  1. Running docker version shows your Docker client and server version
  2. Running helm version shows the Helm version
  3. You have logged into Github
  4. You have your own Docker Hub account
  5. Running kubectl get nodes shows your AKS System and User pools
  6. Running az acr import -n $ACR_NAME --source docker.io/library/nginx:latest --image nginx:v1 copies an image to your ACR instance
  7. Running curl -s https://api.github.com/users/octocat/repos | jq '.' shows you a pretty-printed JSON doc
  8. [OPTIONAL] Running kubectx lets you switch between K8S clusters
  9. [OPTIONAL] Running kubens lets you switch between namespaces
  10. [OPTIONAL] Running ksysgpo shows all pods in your system namespace

Hints

  1. AKS and ACR integration
  2. kubectx and kubens
  3. kubectl aliases
  4. jq