提交 7ae63dd4 编写于 作者: T Thomas Stromberg

Address review comments

上级 38b83b12
...@@ -16,13 +16,9 @@ You should now be able to use docker on the command line on your host mac/linux ...@@ -16,13 +16,9 @@ You should now be able to use docker on the command line on your host mac/linux
docker ps docker ps
``` ```
Docker may report following forbidden error if you are using http proxy and the `$(minikube ip)` is not added to `no_proxy`/`NO_PROXY`: ### Troubleshooting
```shell On CentOS 7, Docker may report the following error:
error during connect: Get https://192.168.39.98:2376/v1.39/containers/json: Forbidden
```
On Centos 7, docker may report the following error:
```shell ```shell
Could not read CA certificate "/etc/docker/ca.pem": open /etc/docker/ca.pem: no such file or directory Could not read CA certificate "/etc/docker/ca.pem": open /etc/docker/ca.pem: no such file or directory
......
...@@ -18,11 +18,11 @@ description: > ...@@ -18,11 +18,11 @@ description: >
minikube start supports additional hyperkit specific flags: minikube start supports additional hyperkit specific flags:
* **\--hyperkit-vpnkit-sock**: Location of the VPNKit socket used for networking. If empty, disables Hyperkit VPNKitSock, if 'auto' uses Docker for Mac VPNKit connection, otherwise uses the specified VSoc * **`--hyperkit-vpnkit-sock`**: Location of the VPNKit socket used for networking. If empty, disables Hyperkit VPNKitSock, if 'auto' uses Docker for Mac VPNKit connection, otherwise uses the specified VSoc
* **\--hyperkit-vsock-ports**: List of guest VSock ports that should be exposed as sockets on the host * **`--hyperkit-vsock-ports`**: List of guest VSock ports that should be exposed as sockets on the host
* **\--nfs-share**: Local folders to share with Guest via NFS mounts * **`--nfs-share`**: Local folders to share with Guest via NFS mounts
* **\--nfs-shares-root**: Where to root the NFS Shares (default "/nfsshares") * **`--nfs-shares-root`**: Where to root the NFS Shares (default "/nfsshares")
* **\--uuid**: Provide VM UUID to restore MAC address * **`--uuid`**: Provide VM UUID to restore MAC address
## Issues ## Issues
......
...@@ -18,7 +18,7 @@ Hyper-V is a native hypervisor built in to modern versions of Microsoft Windows. ...@@ -18,7 +18,7 @@ Hyper-V is a native hypervisor built in to modern versions of Microsoft Windows.
The `minikube start` command supports additional hyperv specific flags: The `minikube start` command supports additional hyperv specific flags:
* **\--hyperv-virtual-switch**: The hyperv virtual switch name. Defaults to first found * **`--hyperv-virtual-switch`**: The hyperv virtual switch name. Defaults to first found
## Issues ## Issues
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* Windows 10 Pro * Windows 10 Pro
* Hyper-V enabled * Hyper-V enabled
* A Hyper-V switch created * An active Hyper-V switch
## Configuring Hyper-V ## Enabling Hyper-V
Open a PowerShell console as Administrator, and run the following command: Open a PowerShell console as Administrator, and run the following command:
...@@ -12,13 +12,21 @@ Open a PowerShell console as Administrator, and run the following command: ...@@ -12,13 +12,21 @@ Open a PowerShell console as Administrator, and run the following command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
``` ```
Reboot, and create a new external network switch: If Hyper-V was not previously active, you will need to reboot.
## Network Configuration
Create a Hyper-V external network switch
{{% alert title="Untested" color="warning" %}}
This command is speculative, and may not work in all environments. You may need to use the Hyper-V Administrator UI for wireless interfaces.
{{% /alert %}}
```powershell ```powershell
New-VMSwitch -name ExternalSwitch -NetAdapterName Ethernet -AllowManagementOS $true New-VMSwitch -name ExternalSwitch -NetAdapterName Ethernet -AllowManagementOS $true
``` ```
Set this network switch as the minikube default: Set this switch as the minikube default:
```shell ```shell
minikube config set hyperv-virtual-switch ExternalSwitch minikube config set hyperv-virtual-switch ExternalSwitch
......
## Requirements ## Requirements
- [https://www.virtualbox.org/wiki/Downloads](VirtualBox) 5.2 or higher - [VirtualBox](https://www.virtualbox.org/wiki/Downloads) 5.2 or higher
## Usage ## Usage
......
...@@ -18,13 +18,13 @@ description: > ...@@ -18,13 +18,13 @@ description: >
The `minikube start` command supports 3 additional kvm specific flags: The `minikube start` command supports 3 additional kvm specific flags:
* **\--gpu**: Enable experimental NVIDIA GPU support in minikube * **`--gpu`**: Enable experimental NVIDIA GPU support in minikube
* **\--hidden**: Hide the hypervisor signature from the guest in minikube * **`--hidden`**: Hide the hypervisor signature from the guest in minikube
* **\--kvm-network**: The KVM network name * **`--kvm-network`**: The KVM network name
## Issues ## Issues
* `minikube` will repeatedly for root password if user is not in the correct `libvirt` group [#3467](https://github.com/kubernetes/minikube/issues/3467) * `minikube` will repeatedly for the root password if user is not in the correct `libvirt` group [#3467](https://github.com/kubernetes/minikube/issues/3467)
* `Machine didn't return an IP after 120 seconds` when firewall prevents VM network access [#3566](https://github.com/kubernetes/minikube/issues/3566) * `Machine didn't return an IP after 120 seconds` when firewall prevents VM network access [#3566](https://github.com/kubernetes/minikube/issues/3566)
* `unable to set user and group to '65534:992` when `dynamic ownership = 1` in `qemu.conf` [#4467](https://github.com/kubernetes/minikube/issues/4467) * `unable to set user and group to '65534:992` when `dynamic ownership = 1` in `qemu.conf` [#4467](https://github.com/kubernetes/minikube/issues/4467)
* KVM VM's cannot be used simultaneously with VirtualBox [#4913](https://github.com/kubernetes/minikube/issues/4913) * KVM VM's cannot be used simultaneously with VirtualBox [#4913](https://github.com/kubernetes/minikube/issues/4913)
......
...@@ -17,8 +17,8 @@ VirtualBox is the oldest and most stable VM driver for minikube. ...@@ -17,8 +17,8 @@ VirtualBox is the oldest and most stable VM driver for minikube.
minikube start supports some VirtualBox specific flags: minikube start supports some VirtualBox specific flags:
* **\--host-only-cidr**: The CIDR to be used for the minikube VM (default "192.168.99.1/24") * **`--host-only-cidr`**: The CIDR to be used for the minikube VM (default "192.168.99.1/24")
* **\--no-vtx-check**: Disable checking for the availability of hardware virtualization * **`--no-vtx-check`**: Disable checking for the availability of hardware virtualization
## Issues ## Issues
......
...@@ -7,8 +7,11 @@ description: > ...@@ -7,8 +7,11 @@ description: >
How to access a LoadBalancer service in minikube How to access a LoadBalancer service in minikube
--- ---
## Overview
A LoadBalancer service is the standard way to expose a service to the internet. With this method, each service gets it's own IP address. A LoadBalancer service is the standard way to expose a service to the internet. With this method, each service gets it's own IP address.
## Using `minikube tunnel` ## Using `minikube tunnel`
Services of type `LoadBalancer` can be exposed via the `minikube tunnel` command. It will run until Ctrl-C is hit. Services of type `LoadBalancer` can be exposed via the `minikube tunnel` command. It will run until Ctrl-C is hit.
...@@ -33,26 +36,23 @@ Status: ...@@ -33,26 +36,23 @@ Status:
loadbalancer emulator: no errors loadbalancer emulator: no errors
``` ```
Tunnel might ask you for password for creating and deleting network routes.
### DNS resolution `minikube tunnel` runs as a separate daemon, creating a network route on the host to the service CIDR of the cluster using the cluster's IP address as a gateway. The tunnel command exposes the external IP directly to any program running on the host operating system.
### DNS resolution (experimental)
If you are on macOS, the tunnel command also allows DNS resolution for Kubernetes services from the host. If you are on macOS, the tunnel command also allows DNS resolution for Kubernetes services from the host.
### Cleaning up orphaned routes ### Cleaning up orphaned routes
If the `minikube tunnel` shuts down in an unclean way, it might leave a network route around. If the `minikube tunnel` shuts down in an abrupt manner, it may leave orphaned network routes on your system. If this happens, the ~/.minikube/tunnels.json file will contain an entry for that tunnel. To remove orphaned routes, run:
This case the ~/.minikube/tunnels.json file will contain an entry for that tunnel.
To cleanup orphaned routes, run:
````shell ````shell
minikube tunnel --cleanup minikube tunnel --cleanup
```` ````
### Avoid entering password multiple times ### Avoiding password prompts
`minikube tunnel` runs as a separate daemon, creates a network route on the host to the service CIDR of the cluster using the cluster's IP address as a gateway. Adding a route requires root privileges for the user, and thus there are differences in how to run `minikube tunnel` depending on the OS.
If you want to avoid entering the root password, consider setting NOPASSWD for "ip" and "route" commands: Adding a route requires root privileges for the user, and thus there are differences in how to run `minikube tunnel` depending on the OS. If you want to avoid entering the root password, consider setting NOPASSWD for "ip" and "route" commands:
<https://superuser.com/questions/1328452/sudoers-nopasswd-for-single-executable-but-allowing-others> <https://superuser.com/questions/1328452/sudoers-nopasswd-for-single-executable-but-allowing-others>
...@@ -41,4 +41,3 @@ touch $KUBECONFIG ...@@ -41,4 +41,3 @@ touch $KUBECONFIG
sudo -E minikube start --vm-driver=none sudo -E minikube start --vm-driver=none
``` ```
## Troubleshooting
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册