34. Kubernetes network principles - basic concepts

This chapter explains the knowledge points

    1. Kubernetes network model
    1. network namespace
    1. veth device pair
    1. bridge
    1. iptables 和 netfilter
    1. routing
    1. Docker's network implementation
    1. Limitations of docker networking


1. Kubernetes network model

Kubernetes' network model is designed to simplify network configuration in container orchestration and provide a way for containers to communicate directly. The core principle of this network model is that each Pod has an independent IP address, and all Pods are in a flat, directly connected network space . This means that regardless of which node the Pods are running on, they are directly reachable via each other's IPs. The design of this principle makes it unnecessary for users to think about how to establish connections between Pods, or how to map container ports to host ports.

In Kubernetes, IP addresses are allocated in units of Pods, which means that all containers inside each Pod share the same network stack, which is equivalent to being in a network namespace . In this model, each Pod has a unique IP address, also known as the IP-per-Pod model.

Since the network model of Kubernetes assumes Po

Guess you like

Origin blog.csdn.net/qq_32468785/article/details/130538703