Introduction ............................................................................................................ 1
Goals of This Book ..................................................................................................................... 1
How This Book is Organized ..................................................................................................1
An Introduction to Networking with Docker ..............................................2
Docker Networking Types ......................................................................................................2
Container-to-Container Communication ........................................................................8
Container Communication Between Hosts................................................................... 9
Interlude: Netfilter and iptables rules ..........................................................10
An Introduction to Kubernetes Networking ............................................. 11
Pod Networking ......................................................................................................................12
Network Policy ........................................................................................................................15
Container Networking Interface ......................................................................................20
Networking with Flannel ..................................................................................21
Running Flannel with Kubernetes ..................................................................................... 21
Flannel Backends ....................................................................................................................21
Networking with Calico ...................................................................................23
Architecture ............................................................................................................................. 23
Install Calico with Kubernetes .......................................................................................... 23
Using BGP for Route Announcements ...........................................................................26
Using IP-in-IP ........................................................................................................................... 29
Combining Flannel and Calico (Canal) .......................................................30
Load Balancers and Ingress Controllers ....................................................31
The Benefits of Load Balancers .........................................................................................31
Load Balancing in Kubernetes ..........................................................................................35
Conclusion ............................................................................................................ 40
Introduction ............................................................................................................ 1
Goals of This Book ..................................................................................................................... 1
How This Book is Organized ..................................................................................................1
An Introduction to Networking with Docker ..............................................2
Docker Networking Types ......................................................................................................2
Container-to-Container Communication ........................................................................8
Container Communication Between Hosts................................................................... 9
Interlude: Netfilter and iptables rules ..........................................................10
An Introduction to Kubernetes Networking ............................................. 11
Pod Networking ......................................................................................................................12
Network Policy ........................................................................................................................15
Container Networking Interface ......................................................................................20
Networking with Flannel ..................................................................................21
Running Flannel with Kubernetes ..................................................................................... 21
Flannel Backends ....................................................................................................................21
Networking with Calico ...................................................................................23
Architecture ............................................................................................................................. 23
Install Calico with Kubernetes .......................................................................................... 23
Using BGP for Route Announcements ...........................................................................26
Using IP-in-IP ........................................................................................................................... 29
Combining Flannel and Calico (Canal) .......................................................30
Load Balancers and Ingress Controllers ....................................................31
The Benefits of Load Balancers .........................................................................................31
Load Balancing in Kubernetes ..........................................................................................35
Conclusion ............................................................................................................ 40