-
Notifications
You must be signed in to change notification settings - Fork 203
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
Common issue faced during the setup of the Vitess operator for Kubernetes #1848
Conversation
✅ Deploy Preview for vitess ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks good! https://deploy-preview-1848--vitess.netlify.app/docs/21.0/get-started/operator/#common-issues-and-solutions
I had some suggestions. Can you also please update the title to better reflect the content of the PR?
@@ -173,6 +173,30 @@ Exiting due to to DRV_AS_ROOT: The "docker" driver should not be used with root | |||
|
|||
<b>Solution:</b> Create a new user and add it to your [docker group](https://docs.docker.com/engine/install/linux-postinstall). | |||
|
|||
<b>Issue:</b> Port conflicts when running the port-forward script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've implemented the changes as discussed. Now, each issue in the Common Issues and Solutions section is organized into its own sub-section, which should make the layout more intuitive and easier to navigate.
alias vtctldclient="vtctldclient --server=localhost:15999" | ||
alias mysql="mysql -h 127.0.0.1 -P 15306 -u user" | ||
``` | ||
You may encounter an error indicating that Vitess is unable to start because the necessary network ports are already in use by other processes on your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it an error because the ports that Vitess wants are already busy, or because the ports that port-forwarding (./pf.sh) wants are busy?
The title of the issue describes only port-forwarding but here we mention "Vitess is unable to start", which can be confusing. If we only want to focus on the port-forwarding issue, we should mention that port-forwarding is unable to start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was becuase of the ports are busy. Done with the changes as mentioned by you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left some comments. I think we should make the Common Issues and Solutions section a bit easier to navigate for readers. And make it more clear that we're only talking about port-forwarding and not about Vitess's binaries.
Moreover, while the solution you have found is correct, doing killall -9 kubectl
will solve the same issue more efficiently, assuming the user does not have other kubectl
running in the background that are unrelated to port-forwarding. We could even add that command to the Setup Port-forward
section.
Hello @shailpujan88 I think both #1848 (review) and #1848 (comment) are pending, also kindly please update the PR title. |
If I am not wrong Are you asking if we should also include the setup port forwarding section in the document? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for sticking with it @shailpujan88 🙂
I am not seeing #1848 (comment) as implemented when looking at the preview on https://deploy-preview-1848--vitess.netlify.app/docs/21.0/get-started/operator/#common-issues-and-solutions. |
@@ -184,3 +202,6 @@ Or alternatively, if you would like to teardown your example: | |||
kubectl delete -f 101_initial_cluster.yaml | |||
``` | |||
Congratulations on completing this exercise! | |||
|
|||
|
|||
[def]: ./#setup-port-forward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this?
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Shail Pujan <shailsing977@gmail.com>
Signed-off-by: Shail Pujan <shailsing977@gmail.com>
260bbb8
to
3387167
Compare
This PR For Add new getting started example #1798
Added a new troubleshooting section to the Vitess Operator for Kubernetes documentation to address common port conflict issues that users may encounter during setup.
Changes made:
Preview: https://deploy-preview-1848--vitess.netlify.app/docs/21.0/get-started/operator/#common-issues-and-solutions