Skip to content

Commit 075ca20

Browse files
committed
Add useful tools in the Kicbase Docker image
Signed-off-by: Peixuan Ding <[email protected]>
1 parent c214b04 commit 075ca20

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

deploy/kicbase/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ RUN echo "Ensuring scripts are executable ..." \
6363
libseccomp2 pigz \
6464
bash ca-certificates curl rsync \
6565
nfs-common \
66+
iputils-ping netcat-openbsd vim-tiny \
6667
&& find /lib/systemd/system/sysinit.target.wants/ -name "systemd-tmpfiles-setup.service" -delete \
6768
&& rm -f /lib/systemd/system/multi-user.target.wants/* \
6869
&& rm -f /etc/systemd/system/*.wants/* \

site/content/en/docs/handbook/host-access.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ aliases:
1111

1212
The service running on your host must either be bound to all IP's (0.0.0.0) and interfaces, or to the IP and interface your VM is bridged against. If the service is bound only to localhost (127.0.0.1), this will not work.
1313

14-
### host.minikube.internal
14+
### `host.minikube.internal`
1515

1616
To make it easier to access your host, minikube v1.10 adds a hostname entry `host.minikube.internal` to `/etc/hosts`. The IP which `host.minikube.internal` resolves to is different across drivers, and may be different across clusters.
1717

@@ -32,8 +32,20 @@ PING host.minikube.internal (192.168.64.1): 56 data bytes
3232
64 bytes from 192.168.64.1: seq=0 ttl=64 time=0.225 ms
3333
```
3434

35-
To test connectivity to a specific TCP service listening on your host, use `telnet host.minikube.internal <port>`. Here are how to interpret the different messages:
35+
To test connectivity to a specific TCP service listening on your host, use `nc -vz host.minikube.internal <port>`:
3636

37-
* `<nothing>`: You are connected! Hit Ctrl-D to get back to a shell prompt.
37+
```sh
38+
$ nc -vz host.minikube.internal 8000
39+
Connection to host.minikube.internal 8000 port [tcp/*] succeeded!
40+
```
41+
42+
Here are how to interpret the different messages:
43+
* `Connection succeeded`: You are connected!
3844
* `Connection refused`: the service is not listening on the port, at least not across all interfaces
39-
* `Connection closed by foreign host`: the service is listening, but decided that your telnet client did not meet the protocol handshake requirements. Using a real client will likely work.
45+
46+
{{% alert title="Note" color="primary" %}}
47+
When using an older version of minikube, you may have to manually install tools like `ping` and `netcat` within the minikube image:
48+
```sh
49+
sudo apt install iputils-ping netcat-openbsd
50+
```
51+
{{% /alert %}}

0 commit comments

Comments
 (0)