Skip to Main Content
Linkerd: Up and Running
book

Linkerd: Up and Running

by Jason Morgan, Flynn
April 2024
Intermediate to advanced content levelIntermediate to advanced
262 pages
6h 12m
English
O'Reilly Media, Inc.
Content preview from Linkerd: Up and Running

Chapter 13. Linkerd CNI Versus Init Containers

In Chapter 2, we mentioned the init container a couple of times without ever talking about it in detail. The init container is one of the two mechanisms Linkerd provides for handling mesh networking in Kubernetes, with the other being the Linkerd CNI plugin. To understand what these do and why you’d choose one over the other, you need to understand what happens when a meshed Pod starts running.

As it happens, that’s a much bigger, thornier issue than you might expect. We’ll start by looking at vanilla Kubernetes, without Linkerd.

Kubernetes sans Linkerd

At its core, Kubernetes has a straightforward goal: manage user workloads so that developers can concentrate on Pods and Services without needing to worry too much about the underlying hardware. This is one of those things that’s easy to describe, and fairly easy to use, but extremely complex to implement. Kubernetes relies on several different open source technologies to get it all done. Remember that we’re talking about Kubernetes without Linkerd at this point—this is essentially your standard Kubernetes functionality.

Nodes, Pods, and More

The first area that Kubernetes has to manage is orchestrating the actual execution of workloads within a cluster. It relies extensively on OS-level isolation mechanisms for this task. Here are some key points to keep in mind:

  • Clusters comprise one or more Nodes, which are physical or virtual machines running Kubernetes itself. We’ll discuss ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Istio: Up and Running

Istio: Up and Running

Lee Calcote, Zack Butcher
gRPC: Up and Running

gRPC: Up and Running

Kasun Indrasiri, Danesh Kuruppu
Istio in Action

Istio in Action

Rinor Maloku, Christian E. Posta
Rust in Action

Rust in Action

Tim McNamara

Publisher Resources

ISBN: 9781098142308Errata Page