networkop / tkng-labs

Labs for "The Kubernetes Networking Guide"
https://tkng.io
Apache License 2.0
91 stars 21 forks source link

Missing container #2

Closed rickyzhang82 closed 2 years ago

rickyzhang82 commented 2 years ago

The doc invoked a command from an unknown container:

$ docker exec k8s-guide-worker curl -s 10.96.94.225 | grep Welcome
<title>Welcome to nginx!</title>
<h1>Welcome to nginx!</h1>

Where does that come from?

networkop commented 2 years ago

This command executes curl -s 10.96.94.225 from inside k8s-guide-worker which is one of the k8s nodes. In a production k8s cluster, this would be equivalent to ssh'ing into one of the k8s nodes and running curl -s 10.96.94.225 from inside it.

rickyzhang82 commented 2 years ago

I think I will just launch a busybox pod to get it done.