kubernetes network

kube-proxy, Calico, coreDNS, etc...

多看man手册,多看man手册,多看man手册。

关于ipvs:

关于keepalived:

# sudo ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.15.64.3:53 mh (flag-1,flag-2)
  -> 10.19.0.38:53                Masq    1      0          0
  -> 10.19.1.170:53               Masq    1      0          0

CoreDNS

Kube-dns或CoreDNS,基本原理都是利用watch Kubernetes的Service和Pod,生成DNS记录,然后通过重新配置Kubelet的DNS选项让新启动的Pod使用Kube-dns或CoreDNS提供的Kubernetes集群内域名解析服务

 
comments powered by Disqus