Git Product home page Git Product logo

aks-workshop's Introduction

Azure Kubernetes Service (AKS) Workshop

Azure Kubernetes Service (AKS) Workshop

Workshop architecture

Workshop architecture diagram

Workshop Pre-reqs

  • Azure subscription with Owner role
    • Why? Because we need to assign permissions e.g., AcrPull and others
  • Azure subscription should be enabled for creating following resources:
    • Multiple Azure Virtual Networks
      • User Defined Routes (UDR)
      • Network Security Groups (NSG)
    • Private DNS Zone
    • Virtual Machine
    • Bastion Host
    • Azure Container Registry (ACR)
    • Azure Kubernetes Service (AKS)
    • Azure Container Instances (ACI)
    • Azure Storage Account
      • NFS fileshare
      • Private endpoint
    • Azure Application Gateway
    • Azure Log Analytics Workspace
  • Each person should have their own dedicated resource group
    • Why? Because we need to test AKS cluster upgrades and other operations that require personal environments
  • Azure Cloud Shell available
  • Entra ID Group that contains all workshop participants
    • Why? Because we need have group for AKS cluster admin access
      • You only need to have Object ID of the group
      • You can use My Groups to find group that you're member of. You can see Object ID of the group in URL.

Usage

  1. Open Azure Cloud Shell
    • Use Bash
    • Use clouddrive folder for persisting files in Azure Cloud Shell
    • To prevent cloud shell for timing out, you can use following keep_alive trick in 00-variables.sh script:
   while :; do echo 'Hit CTRL+C'; sleep 1; done
  • If cloud shell does timeout, then you can recover variable state using these steps:
    1. Run 00-variables.sh to restore variable values
    2. Update authorized IP ranges to AKS:
    my_ip=$(curl -s https://myip.jannemattila.com)
    az aks update -g $resource_group_name -n $aks_name --api-server-authorized-ip-ranges $my_ip
    1. Get credentials for connecting to AKS:
    az aks get-credentials -n $aks_name -g $resource_group_name --overwrite-existing
    1. Test connectivity to API Server:
    kubectl get nodes
  • Alternative environment options: Use WSL or Linux
  • Pre-reqs for alternative environment:
  1. Clone this repo
git clone https://github.com/JanneMattila/aks-workshop.git
  • Good idea to clone this also to local machine for better readability and usability
  1. Start deployments by opening 00-variables.sh and follow the instructions

aks-workshop's People

Contributors

jannemattila avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.