Kubernetes 101 : Troubleshooting pods - Manual Port forwarding from the pod to the local host -
To troubleshoot pods, we sometimes need to access them directly from the local host as it is the case for the below "nginx" pod.
We create our pod using the below command:
On already running pods, we could use the below command:
The next step is to make all the requests arriving on the host on port "88" be forwarded to the "nginx" container on port "80" using the below command:
We could check the if the "nginx" web server is running properly by sending a "HTTP GET" request to it for example using the below command:
Comments