Difficulty: intermediate
Estimated Time: 10-15 minutes

In this scenario, you'll learn about networking concepts in kubernetes.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Getting Started With Networking

Step 1 of 5

Step 1 - Network Model

The Kubernetes network model outlines three methods of component communication:

Pod-to-Pod Communication

* Each Pod in a Kubernetes cluster is assigned an IP in a flat shared networking namespace. This allows for a clean network model where Pods, from a networking perspective, can be treated much like VMs or physical hosts.

Pod-to-Service Communication

* Services are implemented by assigning Virtual IPs which clients can access and are transparently proxied to the Pods grouped by that service. Requests to the Service IPs are intercepted by a kube-proxy process running on all hosts, which is then responsible for routing to the correct Pod.

External-to-Internal Communication

* Accessing services from outside the cluster is generally implemented by configuring external loadbalancers which target all nodes in the cluster. Once traffic arrives at a node, it is routed to the correct Service backends via the kube-proxy.

See Kubernetes Networking for more detailed information on the Kubernetes network model and motivation.