Commit Graph

6232 Commits (30afddc6c1e29e4e106e2dfccc204a0f3e6f76c0)

Author SHA1 Message Date
Predrag Rogic c680044eae
remove allow-snippet-annotations as per recommendation 2021-10-12 23:24:26 +01:00
Predrag Rogic 29abb74777
update ingress to v1-1.0.3 and v1beta1-0.49.3 2021-10-12 21:21:54 +01:00
Peixuan Ding b43f0bcd39 Add detailed info for integration tests 2021-10-11 01:00:06 -04:00
Anders F Björklund 75804c43ad Match the lower case of the podman error message
Turns out that Docker says "No such network",
but Podman says "no such network". Little nuances.
2021-10-10 12:25:18 +02:00
KallyDev 70022d9b2e
Move from deprecated ioutil to os and io packages 2021-10-08 08:57:19 +08:00
Marc Velasco a48e875ec1 return error if unable to get os.UserHomeDir in ssh-key when resolving absolute path 2021-10-07 11:57:43 -07:00
Marc Velasco 4f5524f039 changes for comments to the PR, use os.UserHomeDir and strings.hasprefix, move package order 2021-10-07 10:40:13 -07:00
Marc Velasco a827379f08 remove comment before absolute path function to fix lint errors 2021-10-07 09:27:25 -07:00
Marc Velasco c27326cab8 fix for #12659, rendor absolute path when tilde starts ssh-key path 2021-10-06 23:14:46 -07:00
Steven Powell c516c43aaf
Merge pull request #12641 from duttaANI/updateHelmTillerImage
Update Helm Tiller image to v2.17.0
2021-10-05 14:39:37 -04:00
Steven Powell 1a4160e60d
Merge pull request #12081 from spowelljr/buildkitSocket
buildkit socket: Add systemd unit
2021-10-01 20:49:41 -04:00
Aniruddha Amit Dutta 33396184bb Update Helm Tiller image to v2.17.0 2021-10-01 13:16:06 +05:30
Aniruddha Amit Dutta d3dad9c7f9 Feat: Add a template for cilium yaml 2021-10-01 10:50:35 +05:30
minikube-bot 39eb5cb53c Updating kicbase image to v0.0.27-1633027942-12081 2021-09-30 19:21:11 +00:00
Steven Powell dafbe6aac3 add created by label for podman 2021-09-29 13:47:59 -07:00
Marcus Watkins 6b8aba3c68 Fix invoking kubeadm failing when spaces in PATH 2021-09-28 10:43:13 -06:00
Medya Ghazizadeh 2fd09e11a8
Merge pull request #12149 from afbjorklund/build-cp
Build images on the primary control plane
2021-09-27 19:11:04 -07:00
Medya Ghazizadeh 87dfeb7db5
Merge pull request #12514 from yxxhero/fix_image_none_none
add better error output for minikube image rm
2021-09-27 19:04:14 -07:00
yxxhero 860c66de97 fix typo
Signed-off-by: yxxhero <aiopsclub@163.com>
2021-09-28 07:41:22 +08:00
Aniruddha Amit Dutta cd89ccd30c Fix Ipv4 cidr in cilium 2021-09-27 18:36:13 +05:30
Li Yi f1d56741f8 Fix for boilerplate 2021-09-26 16:19:19 +08:00
Anders F Björklund a9b74bbea2 Allow running podman as experimental driver 2021-09-26 10:16:46 +02:00
Li Yi 9ae94cf8d4 Initial support for adding Aliyun mirror for preload images and Kubernetes binaries
Signed-off-by: Li Yi <denverdino@gmail.com>
2021-09-26 16:04:29 +08:00
Li Yi eb66c6797e Initial support for adding Aliyun mirror for preload images and Kubernetes binaries
Signed-off-by: Li Yi <denverdino@gmail.com>
2021-09-26 15:36:36 +08:00
yxxhero 68b34d41ae add error message out
Signed-off-by: yxxhero <aiopsclub@163.com>
2021-09-25 08:47:47 +08:00
Sharif Elgamal 73d66f0c94
Merge pull request #12534 from sharifelgamal/renew-certs
renew minikube certs if expired
2021-09-24 14:53:22 -07:00
Sharif Elgamal 4307e834df address review comments 2021-09-24 11:47:10 -07:00
Medya Ghazizadeh 8c0e46c784
Merge pull request #12553 from spowelljr/addForceSystemdCrio
Implement --force-systemd into cri-o
2021-09-23 12:15:31 -07:00
Sharif Elgamal 03d9b16c7b write to the correct cell 2021-09-23 09:51:11 -07:00
Steven Powell 205b492a87 implement --force-systemd into cri-o 2021-09-22 15:07:36 -07:00
minikube-bot 2dd9c28d27 Updating ISO to v1.23.1-1632339185-12081 2021-09-22 20:31:56 +00:00
Steven Powell 923928efb7 remove buildkitd start script 2021-09-22 11:31:41 -07:00
Sharif Elgamal 9997caa178 actually print the results 2021-09-22 09:07:00 -07:00
Sharif Elgamal 5038cc0599 fix lint 2021-09-21 17:56:28 -07:00
Sharif Elgamal 92010a5f12 start timing enable ingress for containerd 2021-09-21 17:44:33 -07:00
Sharif Elgamal 2799f24e12 don't skip none driver, fix logging 2021-09-21 17:38:09 -07:00
Sharif Elgamal 1212848649 make cert expiration configurable and add test 2021-09-21 16:17:52 -07:00
Medya Ghazizadeh 6592a43ce2
Merge pull request #12533 from spowelljr/fixDefaultCgroupCrio
change default crio cgroup to systemd
2021-09-21 13:49:12 -07:00
yxxhero 9347def2d0 Modify as suggested
Signed-off-by: yxxhero <aiopsclub@163.com>
2021-09-21 09:48:33 +08:00
Sharif Elgamal e5b8f654fe renew minikube certs if expired 2021-09-20 18:13:24 -07:00
Steven Powell b4cdf84618 change default crio cgroup to systemd 2021-09-20 17:34:49 -07:00
Steven Powell 01314b959b fix template typo 2021-09-20 15:55:40 -07:00
minikube-bot 4a8f4a1e28 bump default/newest kubernetes versions 2021-09-20 08:02:52 +00:00
yxxhero e31738aec4 add better error output for minikube image rm
Signed-off-by: yxxhero <aiopsclub@163.com>
2021-09-19 21:18:30 +08:00
Steven Powell 90b7ebb45f
Merge pull request #12492 from minikube-bot/kicbase-release-v0.0.27
Update kicbase to v0.0.27
2021-09-16 22:44:18 -07:00
Steven Powell 65e7e54788
Merge pull request #12491 from minikube-bot/iso-release-v1.23.1
Update ISO to v1.23.1
2021-09-16 22:44:04 -07:00
Sharif Elgamal a5cdaf53b2 remove debugging 2021-09-16 15:30:59 -07:00
Sharif Elgamal a74d50eade be a little smarter about refreshing secrets 2021-09-16 15:18:52 -07:00
Sharif Elgamal 047f2e553f fix refreshing gcp-auth pull secret 2021-09-16 15:06:31 -07:00
Sharif Elgamal 9c9c1614aa fix sha for metrics-server image in addon config 2021-09-16 13:47:47 -07:00
Sharif Elgamal a86693c96e
Merge pull request #12475 from leifcr/patch-2
Use newer dashboard, to support ingress extensions
2021-09-16 13:31:51 -07:00
minikube-bot 1976e1b296 Update kicbase to v0.0.27 2021-09-16 18:55:00 +00:00
minikube-bot f0636429fb Update ISO to v1.23.1 2021-09-16 18:00:10 +00:00
Sharif Elgamal 40c44fa1ef fix unit tests, change addon yaml, bump preload version 2021-09-16 10:31:43 -07:00
Steven Powell 1936a7b508
Merge pull request #12425 from spowelljr/updateCrio
Update cri-o from v1.20.0 to 1.22.0
2021-09-15 18:21:10 -07:00
Sharif Elgamal 8e61a961e8
Merge pull request #12473 from sharifelgamal/gcp-auth-test
make sure to delete image pull secrets on gcp auth addon disable
2021-09-15 17:12:09 -07:00
Sharif Elgamal 88c62ad469 as usual, skip kube-system for pull secret 2021-09-15 08:59:19 -07:00
Sharif Elgamal 803fc43e26 fix ingress-dns addon and add test 2021-09-14 17:41:26 -07:00
minikube-bot d52130b292 Updating ISO to v1.23.0-1631662909-12425 2021-09-15 00:37:07 +00:00
Leif Ringstad ea81f09058
Use newer dashboard, to support ingress extensions
This should solve #12402 and issues where ingresses will not show properly in the dashboard.
This error shows on kubernetes 1.22
2021-09-14 23:44:35 +02:00
Sharif Elgamal 6acb65ca71 make sure to delete image pull secrets on gcp auth addon disable 2021-09-14 13:12:07 -07:00
minikube-bot 030b3837ab Updating kicbase image to v0.0.26-1631295795-12425 2021-09-14 09:50:53 -07:00
Sharif Elgamal c0534a666c
Merge pull request #12461 from sharifelgamal/gcp-svc-account
Create GCP auth pull secret even if creds JSON is nil
2021-09-14 08:38:53 -07:00
Sharif Elgamal 5672d40eec account for GCE service account for GCP auth 2021-09-13 14:05:30 -07:00
Steven Powell 145f9fc9ab run `go fmt` 2021-09-13 11:58:43 -07:00
Sharif Elgamal f18c312fac
Merge pull request #11785 from brian14708/aliyun-addon
fix images for aliyun registry
2021-09-09 10:31:04 -07:00
minikube-bot 67b82f3fe1 Update kicbase to v0.0.26 2021-09-03 02:18:31 +00:00
minikube-bot 703324b7c7 Updating kicbase image to v0.0.25-1630631232-12398 2021-09-03 01:36:51 +00:00
Steven Powell c1fc138e66
Merge pull request #12395 from spowelljr/updateErrorMessage
Change GitHub issue output to ask user to upload `minikube logs` file
2021-09-02 15:46:56 -07:00
Steven Powell 78febe240d change GitHub issue output to upload `minikube logs` file 2021-09-02 15:09:09 -07:00
minikube-bot 9597ac2f89 Update ISO to v1.23.0 2021-09-02 18:39:41 +00:00
Brian Li 8b8c96bb66 fix minikube images for aliyun registry 2021-09-02 15:04:31 +08:00
Brian Li 71c909a541 fix addon image for aliyun registry 2021-09-02 15:04:31 +08:00
Sharif Elgamal 738eb5177c
Merge pull request #12231 from sharifelgamal/gcp-cs
gcp-auth: improve flow for GCE/Cloud Shell
2021-09-01 13:20:06 -07:00
Sharif Elgamal 60d9d41ba2 omg horrible typo 2021-08-31 15:02:13 -07:00
Medya Ghazizadeh 769ee32872
Merge pull request #12377 from medyagh/helm-fix
fix deprecated image in helm addon
2021-08-31 14:54:39 -07:00
Sharif Elgamal 7317746d57 check for special error everywhere 2021-08-31 12:21:09 -07:00
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
Medya Gh 8c096cc3a7 fix depricated image in helm addon 2021-08-30 16:44:13 -07:00
Medya Gh a622f50c5d fix depricated image in helm addon 2021-08-30 16:42:44 -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
Sharif Elgamal 55c40f8220 Merge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-26 13:32:10 -07: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
Sharif Elgamal 42d3f3b92f Merge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-23 15:40:30 -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
Sharif Elgamal 4bc5cb77d1 Merge branch 'master' of github.com:sharifelgamal/minikube into gcp-cs 2021-08-23 11:11:16 -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
Sharif Elgamal bd9dd612ed Merge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-16 16:52:41 -07: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
Sharif Elgamal f74789656b remove outdated param in tiller test 2021-08-16 16:46:39 -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
Sharif Elgamal 756aac7c21 only skip the addon on enable 2021-08-13 15:07:25 -07:00
Sharif Elgamal 235d7e8280 Merge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-13 14:15:31 -07:00
Sharif Elgamal 371becaf73 tMerge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-13 14:08:23 -07:00
Medya Ghazizadeh 0bd906077f
Revert "new `image save` command" 2021-08-13 14:06:42 -07:00
Sharif Elgamal 06ed3378b9 create special error to skip addons without erroring out 2021-08-13 13:42:02 -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
Medya Gh 7809b3b2ae update calico to v 3.20 2021-08-12 15:22:32 -07:00
Sharif Elgamal ca04178ced exit prematurely in specific case for gcp-auth 2021-08-12 14:13:51 -07:00
Sharif Elgamal 163a4b2934 fix lint 2021-08-11 11:56:45 -07:00
Sharif Elgamal 1319fe729f fix file existence check 2021-08-11 09:58:03 -07:00
Sharif Elgamal f99b234c7e simplify logic 2021-08-10 15:56:15 -07:00
Sharif Elgamal e150129172 refactor EnableOrDisableAddon to reduce cyclotomic complexity 2021-08-10 15:54:12 -07:00
Sharif Elgamal 19b763fd36 do not start pods if no creds 2021-08-10 15:16:41 -07:00
Andriy Dzikh 61fb4757d0 Add info log message to print driver, container runtime, and Kubernetes version. 2021-08-10 14:54:16 -07:00
Medya Gh 4e32f41c83 move away from v1beta apis 2021-08-10 14:24:43 -07:00
Sharif Elgamal dfef0ad478 read blessed cloud shell config file 2021-08-10 13:46:49 -07:00
Andriy Dzikh d2d0fee726 Use Load function in implementation of LoadProfile function. 2021-08-10 13:24:32 -07:00
minikube-bot d7681967bf Updating ISO to v1.22.0-1628622362-12032 2021-08-10 20:06:04 +00:00