Kubernetes : Exposing a container's port
We could expose a container's port on the host port and access it.
We create our pod using the below command:
We use port forwarding to be able to forward a request on our local host on port "80" to port "80" of our nginx container.
We could access our nginx pod by using the "localhost" IP address as below:
"Curl" support various protocols like for example - http, https, ldap, ... - :
Comments