Closed nayabatir1 closed 2 years ago
In kubernetes pods have their own IPs and pods are dynamic mean they often crashes. so, you cannot access pod outside cluster directly. we can access it via Services like NodePort or LoadBalancer to make the service reachable outside the cluster as it provide Virtual IP.
I used this yml config to create a pod. I tried to access pod through network namespace, but unable to do so resulted in connection timeout. but when curl inside the container index.html loads correctly.