-
Notifications
You must be signed in to change notification settings - Fork 500
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-operator fails to start the tiproxy servers if spec.tiproxy.version not provided #5833
Comments
the |
@csuzhangxc The main usability issue here is that, the TiProxy follows a different version numbering than the other TiDB components. And if we set a version |
I know. I mean it's hard to choose a default value for TiProxy as we always recommend the user to use the newest version |
We also reported a related issue to the tidb upstream repo: pingcap/tidb#56643, about the lastest tag not pointing to the actual latest version. It seems that those upstream systems do not have a reliable tag for using the latest version. |
To make the deployment safer, I think the |
Bug Report
What version of Kubernetes are you using?
Client Version: v1.31.1
Kustomize Version: v5.4.2
What version of TiDB Operator are you using?
v1.6.0
What's the status of the TiDB cluster pods?
TiProxy pods are in
CrashBackOffLoop
State.What did you do?
We deployed a cluster with TiProxy.
How to reproduce
What did you expect to see?
TiProxy pods should start successfully and be in the
Healthy
state.What did you see instead?
The TiProxy pods kept crashing and be in
CrashBackOffLoop
state due toErrImagePull
.Root Cause
The root cause is that we specified
spec.version
tov8.1.0
which will be used for all components when pulling their images. However, there is nopingcap/tiproxy:v8.1.0
image available on the DockerHub causing the image pull process to fail for the TiProxy.How to fix
Since the image tag for TiProxy follows a different naming convention compared to other components like TiKV and TiFlash, we recommend setting a default value of
main
forspec.tiproxy.version
. This will ensure the TiDB Operator overrides the version tag for TiProxy and pulls the correct image.The text was updated successfully, but these errors were encountered: