Relative Content

Tag Archive for kubectl

how to change k8s api version?

I have set up AWS EKS cluster , my eks cluster version is 1.29 . I have install kubectl 1.29 . and follow all the command as per guidelines . when i run command # kubectl get nodes . then its showing error = error: exec plugin: invalid apiVersion “client.authentication.k8s.io/v1alpha1”
how to update this api version and what changes i have to do ?

For loop within kubectl exec

I want to understand how we could run a for loop inside kubectl exec. Currently I’m running the following and getting an error.