-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor Model Pod names to use non-indexed names. * Improve scale-down - prioritize non-Ready Pods first. * Ensure ready Pods stick around while rolling out updates. * Add configurable `.modelRollouts.surge` field to system `config.yaml`. * Add automated tests ### Manual Tests ```bash # Model .spec.replicas: 1 # config .modelRollouts.surge: 0 (base) ➜ kubeai git:(rolling-updates) ✗ k get pods -w NAME READY STATUS RESTARTS AGE model-dev-c47f4cb94-qftfc 0/1 ContainerCreating 0 3s model-dev-c47f4cb94-qftfc 0/1 Running 0 2m model-dev-c47f4cb94-qftfc 0/1 Running 0 3m model-dev-c47f4cb94-qftfc 1/1 Running 0 3m model-dev-c47f4cb94-qftfc 1/1 Terminating 0 3m33s model-dev-76975599f6-przkw 0/1 Pending 0 0s model-dev-76975599f6-przkw 0/1 Pending 0 0s model-dev-76975599f6-przkw 0/1 ContainerCreating 0 0s model-dev-c47f4cb94-qftfc 0/1 Terminating 0 3m34s model-dev-c47f4cb94-qftfc 0/1 Terminating 0 3m34s model-dev-c47f4cb94-qftfc 0/1 Terminating 0 3m34s model-dev-c47f4cb94-qftfc 0/1 Terminating 0 3m34s model-dev-76975599f6-przkw 0/1 Running 0 4s model-dev-76975599f6-przkw 0/1 Running 0 50s model-dev-76975599f6-przkw 1/1 Running 0 50s ``` ```bash # Model .spec.replicas: 1 # config .modelRollouts.surge: 1 (base) ➜ kubeai git:(rolling-updates) ✗ k get pods -w NAME READY STATUS RESTARTS AGE model-dev-69d677549c-2pqhq 1/1 Running 0 33s model-dev-765bff5b74-2qdzn 0/1 Pending 0 0s model-dev-765bff5b74-2qdzn 0/1 Pending 0 0s model-dev-765bff5b74-2qdzn 0/1 ContainerCreating 0 0s model-dev-765bff5b74-2qdzn 0/1 Running 0 1s model-dev-765bff5b74-2qdzn 0/1 Running 0 30s model-dev-765bff5b74-2qdzn 1/1 Running 0 30s model-dev-69d677549c-2pqhq 1/1 Terminating 0 72s model-dev-69d677549c-2pqhq 0/1 Terminating 0 73s model-dev-69d677549c-2pqhq 0/1 Terminating 0 74s model-dev-69d677549c-2pqhq 0/1 Terminating 0 74s model-dev-69d677549c-2pqhq 0/1 Terminating 0 74s ```
- Loading branch information
Showing
16 changed files
with
752 additions
and
183 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
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.