Home Kubernetes network type
Post
Cancel

Kubernetes network type

Network

For bare Docker application, We have to expose port to host machine then another application can access it using hostIP:port. This is find but not suit well in cluster environment like K8s because Pod is considered as ephemeral resource which means its IP isn’t consistent.

Service

Service is an abstraction layer on top of Pod. It helps application client to access application(Pod) without knowing Its location(IP). For external access, see Ingress.

Feature/TypeClusterIPNodePortLoadBalancer
Access fromOnly in cluster using service nameAccess using any cluster node IP and specific portAccess using LB IP
How to accessserivce-name:portclusterIP:nodePortLoadBalanceIP:Port
This post is licensed under CC BY 4.0 by the author.