Commit Graph

76 Commits (33396184bbc91dce4874c57e894053b08d4c0009)

Author SHA1 Message Date
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
Medya Gh a714161f31 update go-github to v36 2021-06-29 15:46:23 -04:00
Andriy Dzikh f9f3ef9a09 Pass driverName into Preload and PreloadExists to report no preload for BareMetal. 2021-05-27 15:02:00 -07:00
Ilya Zuyev 71ba8c19bb add comments 2021-04-20 11:44:29 -07:00
Ilya Zuyev 739424c5ac reorder k8s versions to process 2021-04-16 13:00:41 -07:00
Ilya Zuyev bf5d87423a fix comments 2021-04-16 10:52:16 -07:00
Ilya Zuyev e0c3ef3f51 improve logs 2021-04-16 10:41:07 -07:00
Ilya Zuyev 9af84a7d95 debug options 2021-04-15 10:40:43 -07:00
Ilya Zuyev 74c1029d9f more logs 2021-04-14 14:01:41 -07:00
Ilya Zuyev ce748474fb more logs 2021-04-14 13:59:42 -07:00
Ilya Zuyev 06c4bf030f goimports 2021-04-13 13:24:57 -07:00
Ilya Zuyev 71080b0860 add command line options to preload-generator 2021-04-13 12:18:44 -07:00
liuwei10 f059b9b43e logging: migrate some logs to structured logging 2021-02-26 14:30:39 +08:00
Ling Samuel 634f0ae0a9
Remove verbose options 2020-12-10 14:29:38 +08:00
Priya Modali ab4a0ab558 Cleaning up flags parsing. 2020-10-08 11:18:50 -07:00
Priya Modali ef2090ac31 Merge branch 'master' of https://github.com/kubernetes/minikube into klog 2020-10-08 10:27:04 -07:00
Priya Modali 43cc1a2581 Resolved merg conflicts. 2020-10-02 14:10:55 -07:00
Priya Modali 97d96bf925 Switching from glob library to klog library. 2020-09-29 15:49:41 -07:00
Medya Gh f0f10d6135 first version 2020-09-29 14:14:24 -07:00
Medya Gh 47ed4bc23c update lint version 2020-07-24 14:45:15 -07:00
Anders F Björklund b3e5e709fa Need to test storage driver of container runtime 2020-06-30 18:56:30 +02:00
Anders F Björklund b87a837f2e Use the actual storage driver name for cri-o 2020-06-28 09:49:50 +02:00
Anders F Björklund 1bf268c9f6 Generate cri-o container runtime preload tarball 2020-06-27 20:20:35 +02:00
Thomas Stromberg 9e95435e00 Add --cni flag, fix --network-plugin=kubenet 2020-06-23 20:10:25 -07:00
Medya Gh 123d1b6a74 add default versions to preload generation 2020-05-12 18:57:49 -07:00
Thomas Stromberg 436cee2d84 Fix minikube/kubernetes capitalization, make short help consistent 2020-05-07 14:12:10 -07:00
Priya Wadhwa cfb1d21982 fix lint 2020-04-23 16:10:20 -07:00
Priya Wadhwa ac5ef8b0ee fix container runtime in params 2020-04-21 18:17:20 -07:00
Medya Gh dc84091d59
fix preload script 2020-04-20 21:39:08 -07:00
Medya Gh a14f846a8c add one more delete 2020-04-20 18:00:43 -07:00
Medya Gh 3e97301fe8 clean up at start too 2020-04-20 17:55:10 -07:00
Medya Gh d6ad34b920 missed one 2020-04-20 17:54:06 -07:00
Medya Gh 95eba3f734 delete prune 2020-04-20 17:51:59 -07:00
Medya Gh 3bd1608954 move exec inside func 2020-04-20 17:37:56 -07:00
Medya Gh 9eae9e544c hack preload tune pull 2020-04-20 17:36:11 -07:00
Medya Gh b774db38f3 retry up to 5 times 2020-04-20 16:29:07 -07:00
Medya Gh f7ff943f78 retry image pull 2020-04-20 16:25:58 -07:00
Medya Gh ef134c8519 err message improve 2020-04-20 16:20:10 -07:00
Medya Gh 3cd9a09fe4 return intead of exit 2020-04-20 16:18:33 -07:00
Medya Gh cdd0944723 preload script clean up minikube 2020-04-20 16:17:38 -07:00
Medya Gh c504f2febd
spell 2020-04-20 13:33:42 -07:00
Medya Gh 366dc8d127
add helper for img plull command 2020-04-20 13:13:37 -07:00
Medya Gh 1bdd9ff7e8 add docker back 2020-04-20 12:25:19 -07:00
Medya Gh 3823304d21
generate preload for containerd 2020-04-18 06:31:15 -07:00
Thomas Stromberg 16a8c38682 none: Add support for OpenRC init (Google CloudShell) 2020-04-08 18:20:30 -07:00
Medya Gh deb16d6751 copy kic overlay image only for docker run time tarball 2020-04-06 18:56:19 -07:00
Medya Gh f72132b5ec lint 2020-04-06 18:56:19 -07:00
Priya Wadhwa 721a57c25a Rebased 2020-03-26 11:01:28 -07:00
Priya Wadhwa e293b38431 Set --preload flag to true so that download.PreloadExists doesn't immeditely return false 2020-03-26 10:42:45 -07:00
Priya Wadhwa c9c324242c add newlines 2020-03-26 10:37:29 -07:00