Skip to content

[UX] Support launching multiple Kubernetes clusters with sky local up #5321

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DanielZhangQD
Copy link
Collaborator

@DanielZhangQD DanielZhangQD commented Apr 23, 2025

Fix #4794
Support launching multiple Kubernetes clusters with sky local up --k8s-clusters clusters.yaml and cleanning up with sky local up --k8s-clusters clusters.yaml --cleanup.
Example yamls:

ssh_user: admin
ssh_key_path: key.pem
clusters:
  cluster1:
    ips:
    - 5.211.229.79
    - 4.202.228.204
  cluster2:
    ips:
    - 5.207.254.152
    - 5.91.94.121

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
    • Launch local kind cluster
    • Launch 1 remote cluster without password with --ips
    • Launch 1 remote cluster with password with --ips
    • Launch 2 remote clusters without password with --k8s-clusters
    • Launch 2 remote clusters with password with --k8s-clusters
  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)
  • Relevant individual tests: /smoke-test -k test_name (CI) or pytest tests/test_smoke.py::test_name (local)
  • Backward compatibility: /quicktest-core (CI) or pytest tests/smoke_tests/test_backward_compat.py (local)

@DanielZhangQD
Copy link
Collaborator Author

I will update the doc after the new option and YAML schema are finalized.

@DanielZhangQD DanielZhangQD marked this pull request as ready for review April 23, 2025 06:52
@DanielZhangQD DanielZhangQD marked this pull request as draft April 24, 2025 07:37
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

Successfully merging this pull request may close these issues.

[k8s] Allow sky local up to create multiple k8s
1 participant