Intro Container Network Interface

Intro Container Network Interface

Intro Container Network Interface

Container Network Interface

Kubernetes使用eth0管理網路
1.docker network
default is 172.17.0.0/16

2.service network
default is 172.30.0.0/16

3.pod network
default is 10.128.0.0/14

pod 的 load balancing 是使用label name 去找pods

example:

1
2
3
4
5
6
7
8
9
10
11
apiVersion: v1
spec:
selector:
app: www
---
apiVersion: v2
spec:
...
...
labels:
app: www

以上example,v1跟v2的label name需設定一致才能走
同一個load balancer。