-
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
Support BTRFS and ZFS docker storage #1464
Conversation
/hold |
@@ -164,9 +164,32 @@ func commonArgs(cluster string, cfg *config.Cluster) ([]string, error) { | |||
if usernsRemap() { | |||
args = append(args, "--userns=host") | |||
} | |||
|
|||
// handle Docker on Btrfs or ZFS | |||
dockerStorage, err := getDockerStorage() |
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.
in the future this should be refactored to get all the docker info we want, we should avoid unnecessarily making extra info calls.
/approve |
It seems that mounting /dev/mapper from the host to the kind nodes remove the limitation on Docker of using BTRFS or ZFS https://kind.sigs.k8s.io/docs/user/known-issues/#docker-on-btrfs-or-zfs
/hold cancel |
storage := "" | ||
cmd := exec.Command("docker", "info", "-f", "{{.Driver}}") | ||
lines, err := exec.CombinedOutputLines(cmd) | ||
if err != nil { |
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.
i'm not sure if this is the right approach here, but at least it's consistent.
this needs to get refactored anyhow, kind bootstrap has a lot of unnecessary complications I want to clobber after #148
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.
is consistent and is less disruptive, in case of failure it works as usual
🤷♂
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, 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 |
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317 chore: PR feedback Removes the now-unused function mountDevMapper(...) chore: fix ci lint fix: restore missing storage consts
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317 chore: PR feedback Removes the now-unused function mountDevMapper(...) chore: fix ci lint fix: restore missing storage consts
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317 chore: PR feedback Removes the now-unused function mountDevMapper(...) chore: fix ci lint fix: restore missing storage consts chore: fix bad rebase mountDevMapper() is unused
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317 chore: PR feedback Removes the now-unused function mountDevMapper(...) chore: fix ci lint fix: restore missing storage consts chore: fix bad rebase mountDevMapper() is unused
Support for btrfs/zfs was upstreamed to kind in kubernetes-sigs/kind#1464, removing the need for us to hack support in ourselves. Helps kubernetes-sigs#8317 chore: PR feedback Removes the now-unused function mountDevMapper(...) chore: fix ci lint fix: restore missing storage consts chore: fix bad rebase mountDevMapper() is unused
It seems that mounting /dev/mapper from the host to the kind
nodes remove the limitation on Docker of using BTRFS or ZFS
https://kind.sigs.k8s.io/docs/user/known-issues/#docker-on-btrfs-or-zfs
Fixes: #1416