-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix kubelet localStorageCapacityIsolation option #15336
fix kubelet localStorageCapacityIsolation option #15336
Conversation
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 54.4s 54.5s 54.6s 54.1s 53.8s Times for minikube ingress: 29.1s 25.6s 29.6s 29.7s 26.6s docker driver with docker runtime
Times for minikube start: 24.5s 25.9s 25.9s 25.7s 25.6s Times for minikube ingress: 20.9s 25.4s 25.4s 20.9s 22.4s docker driver with containerd runtime
Times for minikube start: 21.1s 21.8s 22.6s 21.2s 24.5s Times for minikube ingress: 27.4s 26.9s 27.5s 26.9s 27.4s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
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.
@prezha looks good, thanks for the fix :) and good to see your contribution again
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, prezha 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 |
fixes: #14728
fixes: #15099 (btrfs + k8s 1.25.2 + docker)
fixes: #15050 (btrfs + k8s 1.25.0 + docker)
it might help with #14819 (btrfs + docker, but k8s version is not shared: issue was reported on 20th Aug, so it, in theory, could be k8s v1.25.0-beta.0, but minikube is v1.26.1 shipped with DefaultKubernetesVersion = "v1.24.3")
i don't think i ever had issues with btrfs + docker + k8s/minikube and also, official OverlayFS and Docker Performance claims that:
but i know some users reported problems earlier, so, in case of such a combination, this pr should automatically:
LocalStorageCapacityIsolation
as feature flag for k8s before v1.25.0-beta.0 andlocalStorageCapacityIsolation
as config option for k8s v1.25.0-beta.0 and newershould they wish, users will also have the option to override this by passing eg,
--extra-config="kubelet.localStorageCapacityIsolation=true"
(which is default) for k8s >= v1.25.0-beta.0 (last example below demonstrates that case)before
$ docker exec -ti docker /bin/bash
root@docker:/# journalctl -f
after
$ time minikube start --driver=docker --kubernetes-version=1.25.3 -p btrfs-docker-k8s1.25.3
$ docker exec -ti btrfs-docker-k8s1.25.3 cat /var/lib/kubelet/config.yaml | grep -A1 "kind: KubeletConfiguration"
$ docker exec -ti btrfs-docker-k8s1.25.3 cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf | grep -i "localStorageCapacityIsolation"
$ time minikube start --driver=docker --kubernetes-version=1.24.7 -p btrfs-docker-k8s1.24.7
$ docker exec -ti btrfs-docker-k8s1.24.7 cat /var/lib/kubelet/config.yaml | grep -A1 "kind: KubeletConfiguration"
$ docker exec -ti btrfs-docker-k8s1.24.7 cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf | grep -i "localStorageCapacityIsolation"
$ time minikube start --driver=docker --kubernetes-version=1.25.3 -p btrfs-docker-k8s1.25.3-ec --extra-config="kubelet.localStorageCapacityIsolation=true"
$ docker exec -ti btrfs-docker-k8s1.25.3-ec cat /var/lib/kubelet/config.yaml | grep -A1 "kind: KubeletConfiguration"
$ docker exec -ti btrfs-docker-k8s1.25.3-ec cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf | grep -i "localStorageCapacityIsolation"
$ minikube profile list