-
Notifications
You must be signed in to change notification settings - Fork 5.1k
fix: allow 1 CPU with --no-kubernetes flag #22168
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
base: master
Are you sure you want to change the base?
fix: allow 1 CPU with --no-kubernetes flag #22168
Conversation
|
Welcome @AryanBagade! |
|
Hi @AryanBagade. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Can one of the admins verify this patch? |
f9d7042 to
f6adc98
Compare
Skip the minimum CPU validation (requires 2 CPUs) when --no kubernetes is set, since Kubernetes is not being run. Also adds --cpus=1 to existing integration test to verify this behavior. Signed-off-by: Aryan Bagade <[email protected]>
f6adc98 to
9b78784
Compare
nirs
left a comment
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.
Tanks @AryanBagade
/lgtm
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: AryanBagade, nirs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test |
|
Tested with vfkit on macOS: % time out/minikube start -d vfkit --cpus 1 --no-kubernetes
😄 minikube v1.37.0 on Darwin 26.2 (arm64)
✨ Using the vfkit driver based on user configuration
👍 Starting minikube without Kubernetes in cluster minikube
🔥 Creating vfkit VM (CPUs=1, Memory=6144MB, Disk=20000MB) ...
🐳 Preparing Docker 28.5.2 ...
🏄 Done! minikube is ready without Kubernetes!
╭───────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ 💡 Things to try without Kubernetes ... │
│ │
│ - "minikube ssh" to SSH into minikube's node. │
│ - "minikube docker-env" to point your docker-cli to the docker inside minikube. │
│ - "minikube image" to build images without docker. │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────╯
out/minikube start -d vfkit --cpus 1 --no-kubernetes 0.24s user 0.34s system 10% cpu 5.501 total |
|
kvm2 driver with docker runtime DetailsTimes for minikube start: 40.1s 39.7s 39.2s 38.2s 39.7s Times for minikube ingress: 15.7s 15.7s 15.8s 15.7s 15.8s docker driver with docker runtime DetailsTimes for minikube ingress: 10.6s 40.6s 73.1s 10.7s 40.6s Times for minikube (PR 22168) start: 23.4s 20.5s 23.9s 23.6s 25.3s docker driver with containerd runtime DetailsTimes for minikube start: 20.2s 21.5s 22.2s 19.7s 22.5s Times for minikube ingress: 20.2s 21.1s 20.1s 20.1s 20.2s |
|
/retest |
|
Here are the number of top 10 failed tests in each environments with lowest flake rate.
Besides the following environments also have failed tests:
To see the flake rates of all tests by environment, click here. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@AryanBagade: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Skip the minimum CPU validation (requires 2 CPUs) when
--no-kubernetesis set, since Kubernetes is not being run.Changes
&& !viper.GetBool(noKubernetes)to both CPU validation checks invalidateCPUCount()--cpus=1to existing--no-kubernetesintegration test to verify this behaviorWhy
The 2 CPU minimum is a Kubernetes requirement (error messages say "Kubernetes requires at least 2"). When
--no kubernetesis used, this requirement shouldn't apply.Fixes #22152