Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 25383a1

Browse files
authored
Merge pull request #76 from gyliu513/hosts
updated how to connect to cluster
2 parents 4e7f7df + 599483e commit 25383a1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ kubectl port-forward svc/cluster-sample-apiserver 6443:6443
9393
### Connect to Cluster
9494

9595
To use the `KUBECONFIG` created by `clusterctl` without modification, we first
96-
need to setup a host record for the apiserver service name, to do this we can
97-
define a custom hosts file by setting the `HOSTALIASES` env and append the
98-
IP-address-to-URL mapping to the hosts file.
96+
need to setup a host record for the apiserver service name, to do this need add
97+
following line to `/etc/hosts`.
9998

100-
```shell
101-
echo '127.0.0.1 cluster-sample-apiserver' >> ~/.hosts
102-
export HOSTALIASES=~/.hosts
99+
```
100+
127.0.0.1 cluster-sample-apiserver
103101
```
104102

105103
### Connect to the Cluster! :tada:

0 commit comments

Comments
 (0)