Skip to content

oardevol/ftahybrid-aksbootcamp

Repository files navigation

AKS Hybrid boot camp

This boot camp will explain what Azure Kubernetes Service (AKS) hybrid is focusing on the design and architecture of AKS hybrid solutions, as part of this boot camp the following topics will be covered:

  1. Creation of aks host
  2. Creation of aks workload cluster
  3. Connecting to workload cluster with kubectl
  4. Configure azure ad authentication
  5. Configure azure RBAC
  6. Configure monitoring
  7. Provision ARC resource bridge
  8. Patching and upgrade
  9. Autoscaler

Find the recordings of this boot camp in this youtube playlist

Duration

This boot camp will have a duration of 5 hours, during this time it will not be possible to cover all the scenarios described, it is expected that attendants will try some of them at their own pace.

Audience

This boot camp is targeted to the following roles:

  • Azure Stack HCI infrastructure engineer looking to understand better what Kubernetes is and what administrative/operational tasks are needed in the Stack HCI environment
  • Kubernetes / AKS Admin looking at understanding AKS hybrid solution and differences between AKS hybrid and other K8s distribution (cloud based or on-premises)

Environment setup

We will use a Windows Server nested virtualization environment installed following the official instructions. Click on the image bellow for a video recording of the process:

Environment setup

Use the following button to deploy in your Azure Subscription:

Deploy to Azure

Things to note:

  • Select a Region that supports all public preview features, like Australia East, East US, Southeast Asia, or West Europe Azure region, as documented in the learn page.
  • Change Data Disk Type to Premium_LRS.
  • Change Data Disk Size to 256.
  • Change the Custom Rdp Port to 33389 or something else to avoid exposing RDP from the well known port.

Your deployment should look like the following:

Deployment options

Once the virtual machine is up and running, you can connect to it through remote desktop using the local akshci.local\AzureUser account:

Remote desktop in host

You should install/configure the following tools:

  • Open a powershell and update the PowershellGet module with the following command:

    Install-PackageProvider -Name NuGet -Force
    Install-Module -Name PowershellGet -Force -Confirm:$false -SkipPublisherCheck

    Reopen the PowerShell terminal to apply changes.

  • Install AksHCI PowerShell module

    Install-Module -Name AksHci -Repository PSGallery -Force -AcceptLicense
  • Install VSCode, Git, Az Powershell.

    choco install vscode.install git az.powershell
  • Install az cli.

    $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; Remove-Item .\AzureCLI.msi
  • Restart the powershell terminal for applications to be added in the PATH.

  • Clone the boot camp repo in Desktop and open it in VSCode

    cd ~/Desktop
    git clone https://github.com/oardevol/ftahybrid-aksbootcamp
    cd ftahybrid-aksbootcamp
    code .

    Trust the author to be able to execute scripts.

  • Install the following VSCode extensions:

From this point on you are ready to start executing the commands in the various script.ps1 files of this boot camp, selecting them and then hitting F8. Before executing the scripts, you should execute env.ps1 to define all environment variables used within the scripts. Make sure these variables point to your deployment.

Note: You should turn off the VM after setup and start it during the boot camp.

Reset environment

If for any reason you need to restart the process:

Uninstall-akshci

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •