-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
rework containerd config #1818
rework containerd config #1818
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder 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 |
b1f8cf5
to
bb01db5
Compare
/retest |
everything checks out now except one thing: the kubelet flag regarding the pause image may not match.
the latter we might care about if we we enable imageGC someday, but we also have that issue with other images |
/test all |
/cc @amwat |
@@ -18,6 +18,23 @@ set -o errexit | |||
set -o nounset | |||
set -o pipefail | |||
|
|||
configure_containerd() { | |||
# we need to switch to the 'native' snapshotter on zfs | |||
if [[ "$(stat -f -c %T /kind)" == 'zfs' ]]; then |
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.
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.
yes
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.
do we need to handle btrfs too?
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.
we have prior art for zfs's best option being falling back to the native driver because the zfs mode is sketchy at least in the kind context and overlay driver doesn't work.
we don't for btrfs.
if someone reports this with evidence, we can add it. I think btrfs is already fixed but can't confirm.
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.
see: #1719
/lgtm |
/unhold |
configure_containerd() { | ||
# we need to switch to the 'native' snapshotter on zfs | ||
if [[ "$(stat -f -c %T /kind)" == 'zfs' ]]; then | ||
sed -i 's/snapshotter = "overlayfs"/snapshotter = "native"/' /etc/containerd/config.toml |
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.
this line itself is fine except we forgot to put the explicit snapshotter in the config. #1891
now that we skip preflight we can simply use a fixed pause image version controlled by containerd.
fixes: #1719 as well