Summary
After working around the ACR Content Trust issue, kars up fails again because the AKS module pins a Kubernetes version that Azure no longer offers on the standard support plan in all regions.
Version
@kars-runtime/cli@0.1.26
- Region tested:
westus3
Error
K8sVersionNotSupported: Managed cluster <name>-aks is on version 1.33.13, which is
only available for Long-Term Support (LTS). To enable LTS on the cluster, see
https://aka.ms/aks/enable-lts.
Root cause
dist/deploy/bicep/modules/aks.bicep:
kubernetesVersion: '1.33'
Hardcoded, not a Bicep parameter, and not surfaced as a kars up flag — so there is no supported way to override it.
In westus3 today, az aks get-versions reports:
| Version |
Support plan |
| 1.36 |
KubernetesOfficial, AKSLongTermSupport |
| 1.35 |
KubernetesOfficial, AKSLongTermSupport |
| 1.34 |
KubernetesOfficial, AKSLongTermSupport |
| 1.33 |
AKSLongTermSupport only |
| 1.32 |
AKSLongTermSupport only |
Suggested fix
Either:
- Expose
kubernetesVersion as a kars up flag and a Bicep parameter, or
- Omit
kubernetesVersion entirely and let AKS pick its default, or
- Track a currently-supported version and add CI that fails when the pin drops off the standard support plan.
Option 3 combined with 1 would prevent recurrence. This is the second hardcoded value in the same deployment that current Azure rejects, so a general "pinned values drift out of support" check may be worth more than either individual fix.
Setting 1.34 locally was sufficient to get past this error.
Summary
After working around the ACR Content Trust issue,
kars upfails again because the AKS module pins a Kubernetes version that Azure no longer offers on the standard support plan in all regions.Version
@kars-runtime/cli@0.1.26westus3Error
Root cause
dist/deploy/bicep/modules/aks.bicep:Hardcoded, not a Bicep parameter, and not surfaced as a
kars upflag — so there is no supported way to override it.In
westus3today,az aks get-versionsreports:Suggested fix
Either:
kubernetesVersionas akars upflag and a Bicep parameter, orkubernetesVersionentirely and let AKS pick its default, orOption 3 combined with 1 would prevent recurrence. This is the second hardcoded value in the same deployment that current Azure rejects, so a general "pinned values drift out of support" check may be worth more than either individual fix.
Setting
1.34locally was sufficient to get past this error.