-
Notifications
You must be signed in to change notification settings - Fork 84
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
Allow running a local kubernetes cluster using kind #4088
Conversation
Whoever reviews this, can you try the steps yourself? Note that while the cluster can communicate with codalab and run workers, it doesn't have access to Docker so it can't run actual bundles yet. #4090 allows workers in the cluster to also launch jobs. |
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.
Thanks for making Kubernetes development more convenient!
try: | ||
user_id = getpass.getuser() | ||
except Exception: | ||
# Sometimes getpass.getuser() doesn't work. |
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.
Does it not work on the cluster? Should we error out instead?
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.
This error always comes up when I try to run a worker manager locally. I had to make the same change to get cs324 worker managers to work (#3949) so I thought I might as well add it in this PR.
|
||
## Start a local Kubernetes Batch Worker Manager (with kind, for testing / development only) | ||
|
||
If you want to test or develop with kubernetes locally, follow these steps to do so: |
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.
nit: capitalize Kubernetes
Allow running a local kubernetes cluster using kind (https://kind.sigs.k8s.io/). kind is a lightweight way to run kubernetes, which runs through a Docker container itself. This way, we can continue to use the Docker daemon for local development and not have to install additional things (for example, other local kubernetes deployments such as minikube require you to install and run a VM)