liveBook · Manning

Calico

As explained in Google Anthos in Action

Calico is an open-source networking and network-security solution for containers, virtual machines, and host-based workloads.

Calico is an open-source networking and network-security solution for containers, virtual machines, and host-based workloads. In GKE Dataplane v1, it implements Kubernetes NetworkPolicies using components that rely heavily on Linux iptables. section 10.2.1

Its responsibility is distinct from kube-proxy’s: Calico enforces network policy, while kube-proxy uses iptables rules to direct Service traffic to healthy Pods. GKE Dataplane v2 instead uses Cilium and eBPF for network policy enforcement, addressing problems associated with the earlier iptables-heavy implementation. section 10.2.1

Table 10.1

Network feature

Existing

New Dataplane

ClusterIP service resolution

kube-proxy using iptables

cilium-agent using eBPF on sockets

NodePort service resolution

kube-proxy using iptables

cilium-agent using eBPF on eth0 TC hooks

Load balancer service resolution

kube-proxy using iptables redirecting to service chain

cilium-agent using eBPF on eth0 TC hooks (same hook as previously)

Network policy enforcement

Calico using iptables

cilium-agent using eBPF on socket as well as eth0 TC hooks

Compare the components and mechanisms used for network policy enforcement and Service resolution across the two GKE dataplanes. section 10.2.1

How Google Anthos in Action covers it

How deep it goes
Identifies Calico’s enforcement role and iptables dependency, but does not detail its configuration or internals.
Examples
Compares network policy enforcement and Service resolution in a GKE dataplane feature table.
What it assumes
Assumes familiarity with Kubernetes Pods, Services, and NetworkPolicies; does not teach those concepts from zero.
What you can do after
Evaluate/understand it as the iptables-based network policy component when comparing GKE Dataplane v1 with v2.
How it connects
Contrasts Calico with kube-proxy’s Service routing and Cilium’s eBPF-based network policy enforcement.

Also explained in

Compare how 2 books explain Calico →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.