-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[k8s] Enable multiple kubernetes contexts for failover (#3968)
* wip * Fix * format * format * Fix context and namespace used * update * fix * Fix feasibility check * fix image for k8s * patch k8s tests * format * format * format * Fix tests * avoid -s * Fix acc detection * format * Update docs/source/reference/config.rst Co-authored-by: Romil Bhardwaj <[email protected]> * refactor a little * Add docs for k8s context update * Use all pods in a context * Add policy * Fix unsupported features and other kube calls * Add policies * Fix backward compatbility * Add smoke test * set * fix typing * Add check for local k8s cluster in smoke test * Add skypilot config * Fix smoke * Make loging log once * format * format --------- Co-authored-by: Romil Bhardwaj <[email protected]>
- Loading branch information
1 parent
4740ea8
commit 4e46cf4
Showing
21 changed files
with
599 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
admin_policy: example_policy.DynamicKubernetesContextsUpdatePolicy |
1 change: 1 addition & 0 deletions
1
examples/admin_policy/example_policy/example_policy/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
"""Example admin policy module and prebuilt policies.""" | ||
from example_policy.skypilot_policy import AddLabelsPolicy | ||
from example_policy.skypilot_policy import DisablePublicIpPolicy | ||
from example_policy.skypilot_policy import DynamicKubernetesContextsUpdatePolicy | ||
from example_policy.skypilot_policy import EnforceAutostopPolicy | ||
from example_policy.skypilot_policy import RejectAllPolicy | ||
from example_policy.skypilot_policy import UseSpotForGpuPolicy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.