Skip to content

Commit

Permalink
change host file entry for Mac
Browse files Browse the repository at this point in the history
For mac, the following parts of the documentation did not work for me:
> 1. Add the following line to the bottom of the `/etc/hosts` file on
>   your computer (you will need administrator access):

>    ```none
>   172.17.0.15 hello-world.info
>  ```

Instead, my host file needed to point to 127.0.0.1 (localhost)

This works on Mac:

>    ```none
>   127.0.0.1 hello-world.info
>  ```

followed by running the command `minikube tunnel`
  • Loading branch information
nbon12 authored Mar 2, 2023
1 parent 5fd1a9d commit 7dcb1e6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ The following manifest defines an Ingress that sends traffic to your Service via
If you are running Minikube locally, use `minikube ip` to get the external IP.
The IP address displayed within the ingress list will be the internal IP.
{{< /note >}}
{{< note >}}
For Mac, if you are running Minikube locally, point to localhost in the hosts file instead of the minikube ip
```none
127.0.0.1 hello-world.info
```
And then use `minikube tunnel`
{{< /note >}}
After you make this change, your web browser sends requests for
`hello-world.info` URLs to Minikube.
Expand Down

0 comments on commit 7dcb1e6

Please sign in to comment.