Commit Graph

6178 Commits (75feb083f3973671a40dcafe4e7fbf3cf2c301b4)

Author SHA1 Message Date
Medya Ghazizadeh 94c74a2f52
Merge pull request #12848 from medyagh/no_kubernetes
Add --no-kubernetes flag  to start minikube without kubernetes
2021-11-04 14:46:48 -07:00
Medya Gh f4055654a1 spell 2021-11-04 12:48:28 -07:00
Medya Gh 75e6ba6637 better translate 2021-11-04 12:35:12 -07:00
Medya Gh 5bcdba0a09 add more constants 2021-11-03 14:16:04 -07:00
Medya Gh bfdc3cfdea address review comments 2021-11-03 14:13:04 -07:00
Medya Gh c827bf849f better name 2021-11-02 15:44:30 -07:00
Medya Gh 79f1b8c55c add --no-kubernetes flag to start minikube without kubernetes 2021-11-02 15:41:40 -07:00
Sharif Elgamal 3342d3aa34
Merge pull request #12811 from nbusseneau/pr/fix-virtualbox-ip
virtualbox: change default `host-only-cidr`
2021-11-02 13:38:16 -07:00
Nicolas Busseneau 02a43c52e2
virtualbox: change default `host-only-cidr`
We change the default `--host-only-cidr` to `192.168.59.1/24` in order
to be compatible with the new default host-only networking restrictions
implemented in VirtualBox 6.1.28.

This fixes access denied errors on `minikube start` when using
VirtualBox >= 6.1.28:

```
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp
```

More details:

VirtualBox 6.1.28 introduced new restrictions on host-only networking:
https://www.virtualbox.org/wiki/Changelog-6.1#v28

Manual: https://www.virtualbox.org/manual/ch06.html#network_hostonly

> On Linux, Mac OS X and Solaris Oracle VM VirtualBox will only allow IP
> addresses in 192.68.56.0/21 range to be assigned to host-only
> adapters. For IPv6 only link-local addresses are allowed. If other
> ranges are desired, they can be enabled by creating
> /etc/vbox/networks.conf and specifying allowed ranges there. For
> example, to allow 10.0.0.0/8 and 192.168.0.0/16 IPv4 ranges as well as
> 2001::/64 range put the following lines into /etc/vbox/networks.conf:
>
>      * 10.0.0.0/8 192.168.0.0/16
>      * 2001::/64
>
> Lines starting with the hash # are ignored. Next example allows any
> addresses, effectively disabling range control:
>
>      * 0.0.0.0/0 ::/0

These new restrictions manifest in the form of the following issue on
`minikube start` due to the default `--host-only-cidr` used by the
VirtualBox driver being `192.168.99.1/24`:

```console
😄  minikube v1.23.2 on Ubuntu 18.04
  Using the virtualbox driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
🔥  Deleting "minikube" in virtualbox ...
🤦  StartHost failed, but will try again: creating host: create: creating: Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
😿  Failed to start virtualbox VM. Running "minikube delete" may fix it: creating host: create: creating: Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet1 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

  Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: creating: Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet1 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

╭───────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                           │
│    😿  If the above advice does not help, please let us know:                             │
│    👉  https://github.com/kubernetes/minikube/issues/new/choose                           │
│                                                                                           │
│    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
│                                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
```

While the above is the primary error, other errors will be reported if
the adapter already exists (this happens when the adapter was created
before updating to VirtualBox 6.1.28, on a version of VirtualBox without
the new restrictions). Some examples:

```
 Exiting due to IF_VBOX_NOT_VISIBLE: Failed to start host: creating host: create: creating: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
```

```
  minikube is unable to connect to the VM: dial tcp 192.168.99.112:22: i/o timeout

	This is likely due to one of two reasons:

	- VPN or firewall interference
	- virtualbox network configuration issue

	Suggested workarounds:

	- Disable your local VPN or firewall software
	- Configure your local VPN or firewall to allow access to 192.168.99.112
	- Restart or reinstall virtualbox
	- Use an alternative --vm-driver
	- Use --force to override this connectivity check

  Exiting due to GUEST_PROVISION: Failed to validate network: dial tcp 192.168.99.112:22: i/o timeout
```

When switching to a valid CIDR, `minikube start` works as usual:

```console
😄  minikube v1.23.2 on Ubuntu 18.04
  Using the virtualbox driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.22.2 on Docker 20.10.8 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🔎  Verifying Kubernetes components...
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
```

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
2021-11-02 15:30:46 +01:00
minikube-bot 79766cee83 bump default/newest kubernetes versions 2021-11-01 08:03:05 +00:00
Sharif Elgamal 6bbf98d57f
Merge pull request #12794 from prezha/improve-ingress
support k8s < v1.19 & watch-ingress-without-class
2021-10-28 10:40:09 -07:00
Steven Powell 2aa49b6295
Merge pull request #12806 from minikube-bot/iso-release-v1.24.0
Update ISO to v1.24.0
2021-10-28 09:55:13 -07:00
Sharif Elgamal c5a933fc45
Merge pull request #12801 from minikube-bot/kicbase-release-v0.0.28
Update kicbase to v0.0.28
2021-10-28 09:12:35 -07:00
Predrag Rogic ea3aa4f3a8
support ingress-dns addon, add tests 2021-10-28 04:14:35 +01:00
minikube-bot c3b8912852 Update ISO to v1.24.0 2021-10-27 23:10:38 +00:00
minikube-bot 3bc369459b Update kicbase to v0.0.28 2021-10-27 19:53:03 +00:00
Gio Gutierrez a49cd8a685 feat: Use new bridge interface name on OSX Monterey 2021-10-27 12:23:31 -05:00
Predrag Rogic 76c1e79598
support k8s < v1.19 & watch-ingress-without-class 2021-10-27 15:05:01 +01:00
Sharif Elgamal 418a9a17d2
Merge pull request #12779 from sharifelgamal/gcp-auth-test2
Fix disabling gcp-auth addon and test
2021-10-26 22:37:22 -07:00
Steven Powell 57de50af7b
Merge pull request #12702 from prezha/update-ingress
update ingress controller to v1/1.0.4 and v1beta1/0.49.3
2021-10-26 15:04:44 -07:00
Medya Ghazizadeh 6f72fc9a25
Merge pull request #12578 from AliyunContainerService/aliyun-mirror
Initial support for adding Aliyun mirror for preload images and K8s release binaries
2021-10-26 13:22:30 -07:00
Sharif Elgamal 8cf0a18069 no need to reverse file order for kubectl delete 2021-10-26 11:46:29 -07:00
Sharif Elgamal aaf85032f4 fix unit test part deux 2021-10-26 10:34:46 -07:00
Sharif Elgamal 77da350d83 fix unit test 2021-10-26 09:01:58 -07:00
Sharif Elgamal 1e932bc5bd cleanup and comments 2021-10-25 18:22:49 -07:00
Sharif Elgamal b0598d06e5 ignore-not-found for kubectl delete 2021-10-25 18:07:45 -07:00
Sharif Elgamal bd9da42651 reverse files for kubectl remove on addon disable 2021-10-25 17:31:24 -07:00
Sharif Elgamal bec03819df fix disabling gcp-auth addon 2021-10-25 15:32:13 -07:00
Medya Ghazizadeh 27b0c741cc
Merge pull request #12756 from spowelljr/fixNetworkIndex
fix podman network inspect index check
2021-10-25 14:41:34 -07:00
Medya Ghazizadeh 91c9af304a
Merge pull request #12730 from sharifelgamal/ingress-dns-002
Upgrade minikube-ingress-dns image to 0.0.2
2021-10-25 14:39:37 -07:00
Medya Gh d33b59d8b2 fix len 2021-10-21 14:54:14 -07:00
Medya Gh f80304a022 address review comments 2021-10-21 14:54:14 -07:00
Medya Gh c8cb7a3c2d delete older minikube version preload files on start tup 2021-10-21 14:54:14 -07:00
Steven Powell 016b3ac40a trim space earlier 2021-10-21 13:28:52 -07:00
Steven Powell fbd4d27582 fix podman network inspect index check 2021-10-21 10:01:10 -07:00
Sharif Elgamal c4b801c8dc
Merge pull request #12735 from zigarn/ingress-driver-none
Remove useless check of baremetal driver for ingress addon
2021-10-20 11:58:07 -07:00
Medya Ghazizadeh b5f8781152
Merge pull request #12717 from afbjorklund/kubeadm-pause
Add kubeadm image versions for kubernetes 1.23
2021-10-19 10:44:31 -07:00
Alexandre Garnier 1c89bd7bf9 Remove useless check of baremetal driver for ingress addon 2021-10-19 17:03:02 +02:00
Sharif Elgamal e41415ce9c Upgrade minikube-ingress-dns image to 0.0.2 2021-10-18 17:18:37 -07:00
Steven Powell d7decc2a8d persist mount settings after stop 2021-10-18 15:40:48 -07:00
Sharif Elgamal 029a9d1700
Merge pull request #12587 from duttaANI/fixIpCilium
Fix Ipv4 cidr in cilium
2021-10-15 14:06:52 -07:00
Steven Powell 99661e64a3
Merge pull request #12711 from spowelljr/fixMount
Fix mounting on non-default profile
2021-10-15 12:57:24 -07:00
Anders F Björklund 9f16ff632f Add kubeadm image versions for kubernetes 1.23 2021-10-15 21:40:09 +02:00
Steven Powell 2a489bf7e1 fix mounting on non-default profile & make mounting processes cluster independent 2021-10-14 14:44:51 -07:00
Sharif Elgamal c3a9f66a8d
Merge pull request #11590 from dinever/detailed-test-info
Add detailed info generation for integration tests
2021-10-14 11:17:23 -07:00
Predrag Rogic db4937aa8f
update ingress-nginx controller to v1.0.4 2021-10-13 09:02:12 +01:00
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