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

Getting error: unable to recognize "service-per-pod.yaml": no matches for kind "Deployment" in version "apps/v1beta1" #11

Open
Sasidharj1809 opened this issue Jul 28, 2021 · 2 comments

Comments

@Sasidharj1809
Copy link

Sasidharj1809 commented Jul 28, 2021

We see one error when trying with kubectl apply -f service-per-pod.yaml as part of Smart Client approach

decoratorcontroller.metacontroller.k8s.io/service-per-pod created
decoratorcontroller.metacontroller.k8s.io/pod-name-label created
service/service-per-pod created
error: unable to recognize "service-per-pod.yaml": no matches for kind "Deployment" in version "apps/v1beta1"

because of apiVersion: apps/v1beta1 in service-per-pod.yaml

If I change this to apiVersion: apps/v1, pods are created but no load balancer

kubectl version
Client Version: version.Info{Major:“1", Minor:“21”, GitVersion:“v1.21.1", GitCommit:“5e58841cce77d4bc13713ad2b91fa0d961e69192”, GitTreeState:“clean”, BuildDate:“2021-05-12T14:11:29Z”, GoVersion:“go1.16.3", Compiler:“gc”, Platform:“darwin/amd64"}
Server Version: version.Info{Major:“1”, Minor:“18", GitVersion:“v1.18.17”, GitCommit:“68b4e26caf6ede7af577db4af62fb405b4dd47e6", GitTreeState:“clean”, BuildDate:“2021-03-18T00:54:02Z”, GoVersion:“go1.13.15”, Compiler:“gc”, Platform:“linux/amd64”}
WARNING: version difference between client (1.21) and server (1.18) exceeds the supported minor version skew of +/-1
@Sasidharj1809
Copy link
Author

We are kind of stuck with this.highly appreciate inputs on this.

@leszko
Copy link

leszko commented Aug 25, 2021

@Sasidharj1809 could you check if this PR fixes your issue?

#14

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