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

Kic: Add "no-limit" option to cpus & memory flags #17491

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

spowelljr
Copy link
Member

$ minikube start --cpus=no-limit --memory=no-limit
πŸ˜„  minikube v1.31.2 on Darwin 14.0 (arm64)
✨  Automatically selected the docker driver. Other choices: qemu2, ssh
πŸ“Œ  Using Docker Desktop driver with root privileges
πŸ‘  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
πŸ”₯  Creating docker container (CPUs=no-limit, Memory=no-limit) ...
🐳  Preparing Kubernetes v1.28.3 on Docker 24.0.6 ...
    β–ͺ Generating certificates and keys ...
    β–ͺ Booting up control plane ...
    β–ͺ Configuring RBAC rules ...
πŸ”—  Configuring bridge CNI (Container Networking Interface) ...
πŸ”Ž  Verifying Kubernetes components...
    β–ͺ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
πŸ„  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

Can see that --memory & --cpus not present in docker run command

I1025 16:07:12.318937     694 cli_runner.go:164] Run: docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --network minikube --ip 192.168.49.2 --volume minikube:/var --security-opt apparmor=unconfined -e container=docker --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 --publish=127.0.0.1::32443 gcr.io/k8s-minikube/kicbase-builds:v0.0.40-1698055645-17423@sha256:fb2566ae68d58d9dce5cb4087954a42bedc9f0c47c18aef3d28a238a8beeb883

Trying to use flag value on non-kic driver will result in an error

$ minikube start --driver qemu --cpus=no-limit
πŸ˜„  minikube v1.31.2 on Darwin 14.0 (arm64)
✨  Using the qemu2 driver based on user configuration

❌  Exiting due to MK_USAGE: The 'qemu2' driver does not support --cpus=no-limit

$ minikube start --driver qemu --memory=no-limit
πŸ˜„  minikube v1.31.2 on Darwin 14.0 (arm64)
✨  Using the qemu2 driver based on user configuration

❌  Exiting due to MK_USAGE: The 'qemu2' driver does not support --memory=no-limit

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 25, 2023
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 25, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, spowelljr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@medyagh
Copy link
Member

medyagh commented Oct 26, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Oct 26, 2023
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 17491) |
+----------------+----------+---------------------+
| minikube start | 50.2s    | 49.7s               |
| enable ingress | 25.8s    | 24.5s               |
+----------------+----------+---------------------+

Times for minikube start: 50.0s 50.6s 49.5s 49.9s 51.0s
Times for minikube (PR 17491) start: 50.5s 48.8s 50.3s 51.0s 47.8s

Times for minikube ingress: 27.1s 23.2s 27.6s 24.1s 27.1s
Times for minikube (PR 17491) ingress: 23.1s 23.6s 27.7s 23.5s 24.6s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 17491) |
+----------------+----------+---------------------+
| minikube start | 23.3s    | 23.7s               |
| enable ingress | 19.9s    | 21.0s               |
+----------------+----------+---------------------+

Times for minikube start: 24.7s 22.1s 22.4s 22.2s 25.2s
Times for minikube (PR 17491) start: 24.1s 21.9s 24.2s 24.0s 24.2s

Times for minikube ingress: 20.8s 21.9s 18.9s 19.8s 18.4s
Times for minikube (PR 17491) ingress: 20.8s 20.8s 21.8s 20.8s 20.9s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 17491) |
+----------------+----------+---------------------+
| minikube start | 22.7s    | 22.6s               |
| enable ingress | 31.4s    | 28.9s               |
+----------------+----------+---------------------+

Times for minikube start: 24.1s 23.4s 20.7s 24.4s 21.0s
Times for minikube (PR 17491) start: 20.9s 23.6s 23.6s 23.7s 21.1s

Times for minikube ingress: 31.4s 31.3s 31.3s 31.4s 31.4s
Times for minikube (PR 17491) ingress: 18.3s 31.3s 32.3s 31.4s 31.3s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Docker_Linux_crio TestAddons/parallel/InspektorGadget (gopogh) 0.00 (chart)
Docker_Windows TestStartStop/group/default-k8s-diff-port/serial/Pause (gopogh) 0.00 (chart)
Docker_Windows TestStartStop/group/no-preload/serial/Pause (gopogh) 0.00 (chart)
KVM_Linux TestStartStop/group/default-k8s-diff-port/serial/AddonExistsAfterStop (gopogh) 1.43 (chart)
KVM_Linux TestStartStop/group/default-k8s-diff-port/serial/Pause (gopogh) 1.43 (chart)
KVM_Linux TestStartStop/group/default-k8s-diff-port/serial/SecondStart (gopogh) 1.43 (chart)
KVM_Linux TestStartStop/group/default-k8s-diff-port/serial/UserAppExistsAfterStop (gopogh) 1.43 (chart)
KVM_Linux TestStartStop/group/default-k8s-diff-port/serial/VerifyKubernetesImages (gopogh) 1.43 (chart)
Hyperkit_macOS TestRunningBinaryUpgrade (gopogh) 15.38 (chart)

To see the flake rates of all tests by environment, click here.

@medyagh medyagh merged commit 68d187f into kubernetes:master Oct 26, 2023
20 checks passed
@spowelljr spowelljr deleted the noLimit branch October 26, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants