-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
crio: use system default for storage driver by default #6637
crio: use system default for storage driver by default #6637
Conversation
Hi @hafe. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. Instructions 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/test-infra repository. |
After host reboot kubelet and crio goes into a loop and no container is started. storage_driver in crio.conf overrides system defaults in etc/containers/storage.conf /etc/containers/storage.conf is installed by package containers-common dependency installed from cri-o (centos7) and contains "overlay". Hosts already configured with overlay2 should be reconfigured and the /var/lib/containers content removed.
6d43103
to
cca7de8
Compare
/ok-to-test |
Ok scratch my comment, I guess the point here is not to force the driver but use the default one from the global conf |
I agree it is confusing but as you said here was that Kubespray created a conflicting config that seemed work but created chaos! I also remember that overlay2 should be used. Somewhere (crio?) I read that nowadays they even are the same in the kernel... |
Don't know if @spaced can take a look ? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hafe, Miouge1 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 |
overlay2 should be the default, not overlay. overlay2 is available on all distros kubespray supports AFAIK, and is more efficient than overlay according to docker:
that means kubespray should manage the content of |
Openshift uses overlay and I think I have seen comments that they are the same nowadays |
But this patch is about not creating a conflicting configuration |
Checking with the crio community |
Community answer is that there's no overlay2 in podman/crio, just overlay. They renamed overlay2 to overlay |
LGTM, overlay==overlay2 in crio world, but there are some strange things that happen when /etc/containers/storage.conf and /etc/crio/crio.conf are out of sync. Defaulting to overlay all the time mitigates this (while the crio team looks at why overlay2 confuses it). |
/lgtm |
* 'master' of https://github.com/kubernetes-sigs/kubespray: (32 commits) Update api version, deprecated in 1.19 (kubernetes-sigs#6656) Update etcd to 3.4.13 (kubernetes-sigs#6658) Update dockerfile for v1.19.1 (kubernetes-sigs#6668) yamllint: ignore .git dir (kubernetes-sigs#6667) fix kubelet_flexvolumes_plugins_dir undefined (kubernetes-sigs#6645) Remove deprecated (and removed in 1.19) flag and function --basic-auth-file (kubernetes-sigs#6655) Update CoreDNS to 1.7.0 (kubernetes-sigs#6657) Update various dependencies following 1.19 release (kubernetes-sigs#6660) Add Kubernetes 1.19.1 hashes and set default (kubernetes-sigs#6654) crio: use system default for storage driver by default (kubernetes-sigs#6637) Add iptables_backend to weave options (kubernetes-sigs#6639) Add comment clarifying network allocation and sizes (kubernetes-sigs#6607) Allowing resource management of metrics-server container. Will allow fine-tuning of resource allocation and solving throttling issues. Setting defaults as per the current request & limit allocation: cpu: 43m, memory 55Mi for both limits & requests. (kubernetes-sigs#6652) Fix a bunch of failed quality rules (kubernetes-sigs#6646) Update calico to 3.16.1 (kubernetes-sigs#6644) NetworkManager lists must be separated by , (kubernetes-sigs#6643) Set ansible_python_interpreter to python3 on debian (fix error with mitogen) (kubernetes-sigs#6633) Use v2.14.0 as base image for CI (kubernetes-sigs#6636) Cleanup v1.16 hashes (kubernetes-sigs#6635) Update kube_version_min_required for 2.14 release (kubernetes-sigs#6634) ...
…gs#6637) After host reboot kubelet and crio goes into a loop and no container is started. storage_driver in crio.conf overrides system defaults in etc/containers/storage.conf /etc/containers/storage.conf is installed by package containers-common dependency installed from cri-o (centos7) and contains "overlay". Hosts already configured with overlay2 should be reconfigured and the /var/lib/containers content removed.
- remove explicit override of storage driver in crio because kubernetes-sigs#6637 and cri-o/cri-o#3768
- remove explicit override of storage driver in crio because ttps://github.com/kubernetes-sigs/pull/6637 and cri-o/cri-o#3768
After host reboot kubelet and crio goes into a loop and no container is started.
storage_driver in crio.conf overrides system defaults in etc/containers/storage.conf
/etc/containers/storage.conf is installed by package containers-common dependency
installed from cri-o (centos7) and contains "overlay".
Hosts already configured with overlay2 should be reconfigured and the
/var/lib/containers content removed.
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: