Commit Graph

6035 Commits (30f7220ad18a5ac58e94de08f62c54866d06cfa5)

Author SHA1 Message Date
Medya Ghazizadeh 3469c77ffa
Merge pull request #12351 from raghavendra-talur/rtalur-add-disks-kvm2
Add `--extra-disks` capability to kvm2 driver
2021-08-30 16:50:58 -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
Medya Ghazizadeh 219580efcc
Merge pull request #12325 from prezha/fix-ingress-v1.22
Bump default Kubernetes version to v1.22.1 and update addons to with new API (ingress, gcpauth, olm and cilium)
2021-08-25 10:48:14 -07:00
Medya Ghazizadeh 527a3d920f
Merge pull request #12265 from prezha/fix-image-save-cmd
fix image save cmd
2021-08-25 10:45:08 -07:00
Sharif Elgamal 2bb50e412f
Merge pull request #12332 from andriyDev/TCSHEnvSupport
Add support for tcsh in docker-env subcommand
2021-08-25 10:09:20 -07:00
Predrag Rogic 1bed76660e
fix lint 2021-08-25 09:41:20 +01:00
Raghavendra Talur dceb676527 Add extra disks capability to kvm2 driver
Having additional disks on the nodes is a requirement for developers
working on the storage components in Kubernetes. This commit adds the
extra-disks feature to the kvm2 driver.

Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
2021-08-25 00:15:02 -04:00
Predrag Rogic aba7d399e8
fix cilium for k8s v1.22+ 2021-08-25 02:11:10 +01:00
Andriy Dzikh 1ba150fd63 Add unit test for tcsh shell. 2021-08-24 11:19:13 -07:00
Predrag Rogic 7466e4a109
fix gcpauth and olm for k8s v1.22+ 2021-08-24 18:40:22 +01:00
Predrag Rogic 9c3c5d1140
prevent 'assignment to entry in nil map' error. 2021-08-24 18:05:56 +01:00
Predrag Rogic abd52901cf
fix ingress for k8s v1.22+ 2021-08-24 18:05:44 +01:00
Predrag Rogic 6efbd1ce13
merge 2021-08-24 04:20:52 +01:00
Sharif Elgamal d6c244e543 bump gcp-auth-webhook to v0.0.7 2021-08-23 18:28:53 -07:00
Medya Ghazizadeh 7fa5dbdee2
Merge pull request #12331 from afbjorklund/kubeadm-versions
Add kubeadm image versions for kubernetes 1.22
2021-08-23 13:51:08 -07:00
Andriy Dzikh fabda37a91 Add support for tcsh in docker-env subcommand. 2021-08-23 10:46:19 -07:00
Anders F Björklund 10dfafeafb Add kubeadm image versions for kubernetes 1.22
Again, the images were wrong in the preload
2021-08-23 18:17:39 +02:00
Anders F Björklund 817f8b4b70 Add also stand-alone image push matching pull
Normally this is done as part of image build
2021-08-22 20:11:19 +02:00
Anders F Björklund 380b846715 Add stand-alone image pull and image tag commands
Needed for testing, but maybe elsewhere as well
2021-08-22 19:52:07 +02:00
Sharif Elgamal 69d5d34eeb
Merge pull request #12089 from zhan9san/feature/ingress-mac
Support Ingress on MacOS, driver docker
2021-08-20 15:16:13 -07:00
Sharif Elgamal b6bbf9fd4b fix lint 2021-08-20 11:21:07 -07:00
Sharif Elgamal f8b9b88425 pause each container separately 2021-08-20 11:03:44 -07:00
Sharif Elgamal ee28862f29 add comments 2021-08-19 16:31:40 -07:00
Sharif Elgamal 5c2f2c888f fix unit tests by comparing JSON structs 2021-08-19 16:13:12 -07:00
Jack Zhang def3f067a8 Support Ingress on MacOS, driver docker 2021-08-17 10:27:21 +08:00
Medya Ghazizadeh 7dc8836303
Merge pull request #12268 from afbjorklund/minikube-2021.02-new
Upgrade Buildroot to 2021.02 LTS with Linux 4.19
2021-08-16 16:47:00 -07:00
Medya Ghazizadeh 29117e3c13
Merge pull request #12230 from medyagh/v1beta_depricate
bump calico to v3.20 and move away from v1beta apis
2021-08-16 16:38:16 -07:00
Medya Ghazizadeh e0e890f7ae
update 2021-08-16 16:08:58 -07:00
Medya Ghazizadeh 30d55ca7f2
Update pkg/minikube/reason/known_issues.go
Co-authored-by: Sharif Elgamal <selgamal@google.com>
2021-08-16 16:06:28 -07:00
Medya Gh 0167da6435 add solution message for cgroup related issues on cloud shell-like environments 2021-08-16 15:50:33 -07:00
Predrag Rogic 11d31dda14
early check if image exists at all 2021-08-16 23:12:38 +01:00
Medya Gh b85c4fe0fc common calico func 2021-08-16 14:24:48 -07:00
Anders F Björklund ab61a07f95 Make sure to use sudo for load/save docker images
Add a test for SaveImage, similar to LoadImage
2021-08-16 18:13:32 +02:00
Anders F Björklund 9e588e6ba1 Add stand-alone image pull and image tag commands
Needed for testing, but maybe elsewhere as well
2021-08-15 20:22:24 +02:00
minikube-bot d7484e41ee Updating ISO to v1.22.0-1628974786-12268 2021-08-14 22:13:14 +00:00
Predrag Rogic fa8ee4957e
fix original pr 12162 2021-08-13 23:28:48 +01:00
Anders F Björklund 68197de861
Add command to save images from the cluster
This is the opposite command of "minikube image load",
and can be used after doing a "minikube image build".

The default is to save images in the cache, but it is
also possible to save to files or to standard output.
2021-08-13 23:28:25 +01:00
Anders F Björklund e59c41e6f2
Add method to copy files from the VM as well
Previously you could only Copy(To), not CopyFrom.

Implies that some Assets can be written to instead.
2021-08-13 23:28:24 +01:00
Medya Ghazizadeh 0bd906077f
Revert "new `image save` command" 2021-08-13 14:06:42 -07:00
Medya Ghazizadeh 559048f83d
Merge pull request #11768 from ilya-zuyev/arm_kvm_driver
KVM2 driver for linux/aarch64
2021-08-13 13:27:59 -07:00
Medya Ghazizadeh d7c3ade64d
Merge pull request #11745 from vishjain/user/vishal/ssh-tunnel/master
Clean up ssh tunnels during exit.
2021-08-13 13:15:47 -07:00
Medya Ghazizadeh 41ba49d597
Merge pull request #12162 from afbjorklund/image-save-cmd
Image save command
2021-08-13 13:02:58 -07:00
Medya Gh 098adff14f fix image name 2021-08-13 12:55:06 -07:00
Medya Ghazizadeh adbeae1763
Merge pull request #12032 from spowelljr/updateBuildkit
Upgrade buildkit from 0.8.2 to 0.9.0
2021-08-13 12:43:49 -07:00
Medya Gh ccf4af0997 change depricated golint to revive and fix lint issues 2021-08-12 18:11:16 -07:00
Medya Ghazizadeh a85e155490
Merge pull request #12252 from medyagh/fix_lint
Fix lint for gocilint 1.41.1
2021-08-12 17:45:20 -07:00
Medya Gh 6aa7abc24a fix lint issues on master 2021-08-12 17:38:24 -07:00
Medya Gh 5206f7fb39 fix lint 2021-08-12 17:11:31 -07:00
Medya Ghazizadeh 79df20bf59
Merge pull request #12228 from andriyDev/PrintProfile
Print profile driver, container runtime, and Kubernetes version on load
2021-08-12 16:42:25 -07:00
Medya Gh 1c76ff5cea lint 2021-08-12 15:29:54 -07:00