kubectl version in command- pod too old

How to get a newer kubectl version in the command- pod started in the aks-command namespace. After upgrading the aks kubernetes cluster to 1.32.6, I get the result below.

az aks command invoke
  –resource-group $AKS_RESOURCE_GROUP
  –name $AKS_CLUSTER_NAME
  –command “kubectl $*”

results in

command started at 2025-08-07 13:45:05+00:00, finished at 2025-08-07 13:45:06+00:00 with exitcode=0
Client Version: v1.30.5
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.32.6
WARNING: version difference between client (1.30) and server (1.32) exceeds the supported minor version skew of +/-1

Read more here: Source link

kubectl version in command- pod too old

How to get a newer kubectl version in the command- pod started in the aks-command namespace. After upgrading the aks kubernetes cluster to 1.32.6, I get the result below.

az aks command invoke
  –resource-group $AKS_RESOURCE_GROUP
  –name $AKS_CLUSTER_NAME
  –command “kubectl $*”

results in

command started at 2025-08-07 13:45:05+00:00, finished at 2025-08-07 13:45:06+00:00 with exitcode=0
Client Version: v1.30.5
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.32.6
WARNING: version difference between client (1.30) and server (1.32) exceeds the supported minor version skew of +/-1

Read more here: Source link

kubectl version in command- pod too old

How to get a newer kubectl version in the command- pod started in the aks-command namespace. After upgrading the aks kubernetes cluster to 1.32.6, I get the result below.

az aks command invoke
  –resource-group $AKS_RESOURCE_GROUP
  –name $AKS_CLUSTER_NAME
  –command “kubectl $*”

results in

command started at 2025-08-07 13:45:05+00:00, finished at 2025-08-07 13:45:06+00:00 with exitcode=0
Client Version: v1.30.5
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.32.6
WARNING: version difference between client (1.30) and server (1.32) exceeds the supported minor version skew of +/-1

Read more here: Source link