Google News
logo
Kubernetes - Interview Questions
What are the different ways to provide external network connectivity to K8?
By default, POD should be able to reach the external network but vice-versa we need to make some changes. Following options are available to connect with POD from the outer world.
 
* Nodeport (it will expose one port on each node to communicate with it)
* Load balancers (L4 layer of TCP/IP protocol)
* Ingress (L7 layer of TCP/IP Protocol)

Another method is to use Kube-proxy which can expose a service with only cluster IP on the local system port.
 
$ kubectl proxy --port=8080 $ http://localhost:8080/api/v1/proxy/namespaces//services/:/
Advertisement