You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create AKS cluster compatible with Karpenter, and with the workload identity enabled:
98
+
Create the AKS cluster compatible with Karpenter, with workload identity enabled:
91
99
92
100
```bash
93
101
AKS_JSON=$(az aks create \
@@ -119,13 +127,17 @@ for role in "Virtual Machine Contributor" "Network Contributor" "Managed Identit
119
127
done
120
128
```
121
129
130
+
> Note: If you experience any issues creating the role assignments, but should have the given ownership to do so, try going through the Azure portal:
131
+
> 1. Navigate to your MSI.
132
+
> 2. Give it the following roles "Virtual Machine Contributor", "Network Contributor", and "Managed Identity Operator" at the scope of the node resource group.
133
+
122
134
### Configure Helm chart values
123
135
124
-
The Karpenter Helm chart requires specific configuration values to work with an AKS cluster. While these values are documented within the Helm chart, you can use the `configure-values.sh` script to generate the `karpenter-values.yaml` file with the necessary configuration. This script queries the AKS cluster and creates the values file using `karpenter-values-template.yaml` as a template. Although the script automatically fetches the template from the main branch, inconsistencies may arise between the installed version of Karpenter and the repository code. Therefore, it is advisable to download the specific version of the template before running the script.
136
+
The Karpenter Helm chart requires specific configuration values to work with an AKS cluster. While these values are documented within the Helm chart, you can use the `configure-values.sh` script to generate the `karpenter-values.yaml` file with the necessary configuration. This script queries the AKS cluster and creates `karpenter-values.yaml`using `karpenter-values-template.yaml` as the configuration template. Although the script automatically fetches the template from the main branch, inconsistencies may arise between the installed version of Karpenter and the repository code. Therefore, it is advisable to download the specific version of the template before running the script.
A single Karpenter NodePool is capable of handling many different pod shapes. Karpenter makes scheduling and provisioning decisions based on pod attributes such as labels and affinity. In other words, Karpenter eliminates the need to manage many different node groups.
@@ -277,6 +298,8 @@ If you delete a node with kubectl, Karpenter will gracefully cordon, drain, and
277
298
kubectl delete node $NODE_NAME
278
299
```
279
300
301
+
## Cleanup (self-hosted)
302
+
280
303
### Delete the cluster
281
304
282
305
To avoid additional charges, remove the demo infrastructure from your AKS account.
0 commit comments