Commit Graph

99 Commits (b9cfb1b3d5286ae126739cbc398ba4a6f3f0502a)

Author SHA1 Message Date
Steven Powell 1fa3444672
Merge branch 'master' into improveContainerdConfig 2022-05-27 11:46:47 -07:00
Sharif Elgamal e15f3bca50 spaces 2022-05-26 13:22:47 -07:00
Sharif Elgamal 315aef0f15 revert unnecessary change 2022-05-26 13:12:36 -07:00
Sharif Elgamal e4ca9c6c50 revert unrelated change 2022-05-25 18:38:15 -07:00
Sharif Elgamal b9c90e9d82 kicbase: don't build cri-dockerd from source 2022-05-25 18:16:42 -07:00
Sharif Elgamal fa8864c25c pass in less source code to auto-pause kicbase context 2022-05-24 14:18:49 -07:00
Steven Powell cf036c63ed rename config file to config.toml 2022-05-12 10:53:06 -07:00
Steven Powell b5cd6c4549 containerd: use drop in config to update values 2022-05-12 10:52:32 -07:00
Steven Powell 7c1b415614 update to 0.10.3 2022-05-11 15:49:29 -07:00
Steven Powell 4c9b61d977 Update deploy/kicbase/Dockerfile 2022-05-11 15:48:43 -07:00
Anders F Björklund 67699a2c68 Upgrade buildkit from 0.9.0 to 0.10.0 2022-05-11 15:48:43 -07:00
Steven Powell 7ed0fb0473 use crio mirror 2022-05-10 16:14:39 -07:00
Akihiro Suda 7204b1db3e
KIC rootless: drop fuse-overlayfs; bump kernel requirement to 5.11
minikube 1.23 (PR 12359) added fuse-overlayfs snapshotter for rootless Docker driver,
but got broken in minikube 1.25 (issue 13534).

We can drop fuse-overlayfs for kernel >= 5.11.

Fix issue 13534

We may add back fuse-overlayfs later if there is a huge demand to
support kernel < 5.11.
That will require packing preloadable tarballs for fuse-overlayfs
snapshotter.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-03-22 18:08:14 +09:00
Anders F Björklund 946856dfe9 Building auto-pause needs go1.17 2022-03-20 18:03:00 +01:00
Anders F Björklund 5da2fb7ed4 Update kicbase base image 2022-03-20 17:39:26 +01:00
Steven Powell 921816747a use drop in configuration files for crio 2022-02-08 10:11:36 -08:00
Anders F Björklund 0a9a80dac7 Upgrade cri-dockerd to fix the socket path
The v0.2.0 had the socket as cri-docker.sock,
while the installer are using cri-dockerd.sock

Also fix the output of cri-dockerd --version,
to use the git commit instead of just "HEAD".
2022-02-04 17:22:10 +01:00
Anders F Björklund 9bfc7009a5 Upgrade cri-dockerd 2022-02-02 18:40:24 +01:00
Anders F Björklund 3f723b2639 Add static build of cri-dockerd to kicbase 2021-12-22 21:48:37 +01:00
Sharif Elgamal 1c948645f1 spacing 2021-12-14 12:40:03 -08:00
Sharif Elgamal c3688b6230 address comments 2021-12-14 12:36:48 -08:00
Sharif Elgamal 885ad28bbc fix it actually 2021-12-13 16:54:36 -08:00
Sharif Elgamal 3733f436fc death by a thousand papercuts 2021-12-13 15:47:21 -08:00
Sharif Elgamal 682d144904 fix sed for ppc 2021-12-13 14:38:59 -08:00
Sharif Elgamal 50ed250fce don't use crio on armv7 either 2021-12-13 13:31:04 -08:00
Sharif Elgamal 72e654ac17 don't add user to nonexistent group :) 2021-12-08 15:53:10 -08:00
Sharif Elgamal 0e00ca4477 syntax 2021-12-08 14:26:38 -08:00
Sharif Elgamal 9700ca1c79 don't start podman socket when there is no podman 2021-12-08 14:17:44 -08:00
Sharif Elgamal ba5e3d4615 don't stop services that aren't installed 2021-12-08 13:14:34 -08:00
Sharif Elgamal a8ca32e63b filter out podman for powerpc arch 2021-12-08 11:36:56 -08:00
Sharif Elgamal 6c7cf29987 exclude crio for powerpc 2021-12-08 09:39:15 -08:00
Sharif Elgamal 6b7168cf4b fix kicbase dockerfile to allow ppc64le and armv7 archs 2021-12-07 16:05:32 -08:00
klaases f358a1e907 Update BUILD KIT version. 2021-12-06 12:47:43 -08:00
Steven Powell 4452d73284 add buildkit to kicbase 2021-09-22 11:31:41 -07:00
Steven Powell a218d9fce0 add missing slash 2021-09-22 11:31:41 -07:00
Steven Powell 2c624cdeac added improvements based on feedback 2021-09-22 11:31:41 -07:00
Steven Powell dbc7ace360 buildkit socket 2021-09-22 11:31:41 -07:00
Steven Powell debae03666 crio enabled s390x arch 2021-09-14 09:50:53 -07:00
Steven Powell 5243af5d58 only disable crio if installed 2021-09-14 09:50:53 -07:00
Steven Powell 8304e52539 prevent user from using crio on unsupported hardware 2021-09-14 09:50:53 -07:00
Steven Powell 1bc841108f skip cri-o installation on unsupported archs 2021-09-14 09:50:53 -07:00
Steven Powell 623c01c23a remove var 2021-09-14 09:50:53 -07:00
Steven Powell c31db4fd99 update cri-o from v1.20.0 to 1.22.0 2021-09-14 09:50:53 -07:00
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
Steven Powell b36be9cd52 Upgrade buildkit from 0.8.2 to 0.9.0 2021-08-10 11:05:34 -07:00
Andriy Dzikh 022967c4d3 Make kicbase copy auto-pause directly instead of the auto-pause folder. 2021-06-30 10:08:16 -07:00
Medya Gh e8103ca011 auto puase arm64 2021-06-24 17:25:14 -04:00
Peixuan Ding 075ca20498 Add useful tools in the Kicbase Docker image
Signed-off-by: Peixuan Ding <dingpeixuan911@gmail.com>
2021-05-11 21:57:29 -04:00
Anders F Björklund f9cfa45c60 Update kicbase base image and sync with kind 2021-04-10 09:51:07 +02:00
Medya Gh 1cda7d41ef change location of auto-pause binary 2021-04-08 09:56:36 -07:00