minikube/deploy
Akihiro Suda 323225483e
Support Rootless Docker
Requirements:
- Install rootless Docker 20.10 or later, see https://rootlesscontaine.rs/getting-started/docker/
- Enable cgroup v2 delegation, see https://rootlesscontaine.rs/getting-started/common/cgroup2/

Usage: `minikube start --driver=docker --container-runtime=containerd`.
The `--container-runtime` flag needs to be set to "containerd".
CRI-O can be also supported later.

Closes issue 10836 ("add support for rootless Docker").

Support for rootless Podman (issue 8719) is not covered in this commit.

---

Code reading guide:
- `deploy/kicbase/Dockerfile`: updated to install fuse-overlayfs and containerd-fuse-overlayfs, which is used
  instead of `overlayfs` snapshotter

- `deploy/kicbase/entrypoint`: updated to verify cgroup v2 delegation.
  Mostly from 8a83ee46b2/images/base/files/usr/local/bin/entrypoint

- `cmd/minikube/cmd/start_flags.go`: updated to set `KubeletInUserNamespace` feature gate when rootless

- `pkg/drivers/kic/oci`: updated to use port forwarding, because rootless container IPs are not reachable from the host

- `pkg/minikube/cruntime`: updated to generate `/etc/containerd/config.toml` with rootless support.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-27 17:21:53 +09:00
..
addons fix gcpauth and olm for k8s v1.22+ 2021-08-24 18:40:22 +01:00
gvisor add ca certs to gvisor image 2020-02-19 15:49:56 -08:00
iso Upgrade Buildroot to 2021.02 LTS with Linux 4.19 2021-08-14 22:02:02 +02:00
kicbase Support Rootless Docker 2021-08-27 17:21:53 +09:00
minikube Update releases.json to include v1.22.0 2021-07-07 14:59:10 -07:00
prow Fix comment 2021-05-02 17:51:57 +00:00
storage-provisioner Merge branch 'master' into f-fix-5144 2020-02-05 11:32:32 -08:00