Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl evict-pod Error: exec plugin: invalid apiVersion #11

Open
nitinware opened this issue Aug 24, 2022 · 2 comments
Open

kubectl evict-pod Error: exec plugin: invalid apiVersion #11

nitinware opened this issue Aug 24, 2022 · 2 comments

Comments

@nitinware
Copy link

I am seeing below error on trying to evict the pod using the evict-pod plugin:

$ kubectl evict-pod podtest-67f995866b-2b46k -n pred-services
Error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
@rajatjindal
Copy link
Owner

Hi @nitinware , thanks for reporting the issue.

could you please share the details of kubectl version. I am looking for version of kubectl and kubernetes cluster that you are using.

thanks

@nitinware
Copy link
Author

@rajatjindal thanks for quick reply, appreciate it, below are the kubectl version details -

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:51:05Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"darwin/arm64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.13-eks-84b4fe6", GitCommit:"e1318dce57b3e319a2e3fecf343677d1c4d4aa75", GitTreeState:"clean", BuildDate:"2022-06-09T18:22:07Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.23) and server (1.21) exceeds the supported minor version skew of +/-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants