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

[k8s] Allow spot instances on supported k8s clusters #3675

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

romilbhardwaj
Copy link
Collaborator

@romilbhardwaj romilbhardwaj commented Jun 19, 2024

Closes #3667.

Adds support for using spot instances with --use-spot if the underlying cluster supports spot instances.

This is supported only for GKE to start and is enabled only if the cluster already has spot instances or the user has set autoscaler: gke in config.yaml.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Tested sky launch --use-spot on GKE cluster with spot instances
  • Tested sky launch --use-spot on GKE autoscaling cluster
  • Minimal smoke tests on regular GKE cluster

Copy link
Collaborator

@Michaelvll Michaelvll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @romilbhardwaj! LGTM.

@romilbhardwaj romilbhardwaj merged commit 69f37e2 into master Jun 19, 2024
20 checks passed
@romilbhardwaj romilbhardwaj deleted the k8s_spot_gke branch June 19, 2024 18:00
Michaelvll pushed a commit that referenced this pull request Aug 23, 2024
* Add spot support

* comment

* patch get_spot_label for tests
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] Support exclusive use of spot node pools when use_spot: True
2 participants