Please update your awscli to 2.6.3
In v1.24.0, kubectl
will report the following error when relying on the kubeconfig generated by aws-cli
> error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
The reason is that Kubernetes deprecated client.authentication.k8s.io/v1alpha1"
from the exec
plugin in PR108616
And the aws-cli update PR6476 has not been merged. There are two solutions