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

tidb-controller-manager failed to list *v1beta1.StatefulSet because of kubernetes version changed #1063

Closed
XiaYinchang opened this issue Oct 28, 2019 · 2 comments

Comments

@XiaYinchang
Copy link

Bug Report

What version of Kubernetes are you using?
v1.16.2

What version of TiDB Operator are you using?
v1.0.1

What did you do?
try to create a tidb-cluster

What did you expect to see?
tidb-cluster is ready

What did you see instead?
tidb-controller-manager outputs errors in log as following
# kubectl logs tidb-controller-manager-65f67db64d-zv6r5 -n storage-system --tail 10 E1028 13:01:40.569238 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:41.571485 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:42.573618 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:43.575632 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:44.577591 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:45.579948 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:46.582130 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:47.584081 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:48.586078 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource E1028 13:01:49.588595 1 reflector.go:134] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:95: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource

The Problem
The problem is obvious, the client-go package (version v2.0.0-alpha.0.0.20190115164855-701b91367003) used by tidb-operator is too old.
From Kubernetes v1.16.2 , you can not find deployment and statefulset in apps/v1beta or extensions/v1beta any more and they are now can only be found in apps/v1. The client-go version should be upgraded or just try to use apps/v1 instead of apps/v1beta and extensions/v1beta.

@tennix
Copy link
Member

tennix commented Oct 29, 2019

@XiaYinchang This is already fixed in #1012. And we'll release a new version soon to include this fix.

@XiaYinchang
Copy link
Author

@XiaYinchang This is already fixed in #1012. And we'll release a new version soon to include this fix.

OK. Thank you! Then this issue should be closed. Refer to #996, and fixed in #1012.

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