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

docker driver on linux: warn if overlay module is not enabled #8541

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

medyagh
Copy link
Member

@medyagh medyagh commented Jun 23, 2020

Currently we install the docker inside minikube with overlayfs storage driver.
and it is not currently on our roadmap to support others, and and if you are on linux and your linux kernel does not have overlayfs then it will have significant slow performances

after this PR:

(ignore that it is running on darwin I fliped the If statement to make error in darwin)
this should only add warnning for linux, since docker-machine comes with overlayfs on mac and windows

😄  minikube v1.12.0-beta.0 on Darwin 10.15.5
✨  Using the docker driver based on user configuration

❗  'docker' driver reported a issue that could affect the performance.
💡  Suggestion: enable overlayfs kernel module on your Linux

👍  Starting control plane node minikube in cluster minikube
🔥  Creating docker container (CPUs=2, Memory=4000MB) ...
🐳  Preparing Kubernetes v1.18.3 on Docker 19.03.2 ...
    ▪ kubeadm.pod-network-cidr=10.244.0.0/16
🔎  Verifying Kubernetes components...
🌟  Enabled addons: default-storageclass, storage-provisioner
🏄  Done! kubectl is now configured to use "minikube"

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 23, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2020
@afbjorklund
Copy link
Collaborator

What are we trying to guard against here ? Users that are using vfs driver for "special" reasons (NTFS) ? #7933

Or to avoid destroying the docker installation of older docker users ? #7626 Or users that are using btrfs ? #6167

@@ -616,6 +616,13 @@ func validateDriver(ds registry.DriverState, existing *config.ClusterConfig) {
st := ds.State
glog.Infof("status for %s: %+v", name, st)

if st.NeedsImprovement { // warn but don't exit
out.ErrLn("")
out.WarningT("'{{.driver}}' driver reported a issue that could affect the performance.", out.V{"driver": name})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{.driver}} driver reported an issue that could affect performance

@medyagh medyagh merged commit 0b53e90 into kubernetes:master Jun 25, 2020
@medyagh medyagh changed the title docker driver on linux: Give warning if overlay module is not enabled docker driver on linux: warn if overlay module is not enabled Jun 25, 2020
@medyagh medyagh deleted the modprob_overlay branch March 2, 2021 21:35
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. 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