Self-Hosted Karpenter Installation on AKS¶
This guide explains how to install self-hosted Karpenter on an existing AKS cluster.
Prerequisites¶
Ensure you have the following tools installed:
- Azure CLI
- kubectl
- Helm
- jq (Bash only)
- yq (Bash only)
Installation Steps¶
1. Set Environment Variables¶
2. Create AKS Cluster¶
Create a new AKS cluster. This requires the Azure CNI Overlay network with the Cilium dataplane.
3. Connect to Your AKS Cluster¶
3. Create the workload Managed Identity that backs the karpenter pod auth:¶
4. Create Federated Credential linked to the Karpenter Service Account for Auth Usage:¶
5. Create role assignments to let Karpenter manage VMs and Network resources:¶
7. Download Configuration Template and Configure Helm Values¶
Note
The PowerShell script configure-values.ps1
is provided as part of this workshop. It performs similar functionality to the bash script, handling all the environment variable substitutions required for the template.
8. Install Karpenter Using Helm¶
9. Verify Installation¶
You can now go back to the Setup section at step 9.