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:
- Creation of aks host
- Creation of aks workload cluster
- Connecting to workload cluster with kubectl
- Configure azure ad authentication
- Configure azure RBAC
- Configure monitoring
- Provision ARC resource bridge
- Patching and upgrade
- Autoscaler
Find the recordings of this boot camp in this youtube playlist
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.
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)
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:
Use the following button to deploy in your Azure Subscription:
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
toPremium_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:
Once the virtual machine is up and running, you can connect to it through remote desktop using the local akshci.local\AzureUser
account:
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:
- PowerShell but do not install PowerShell 7.0
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.
If for any reason you need to restart the process:
Uninstall-akshci