You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode Image and container: what Kubernetes actually copies

What happens when you run kubectl apply

Kubernetes cluster: the control plane decides, the nodes run your app

A Kubernetes cluster is a group of servers. They do not all do the same job. Some of them never run a single line of your app.

  1. 1 Here, Kubernetes has 5 servers to work with.5 servers, andnobody in charge?Who decideswhat runs where?

    Here, Kubernetes has 5 servers to work with.

  2. 2 Together, those servers form a cluster. They are not equal: one of them decides, and the 4 others do the work.cluster

    Together, those servers form a cluster. They are not equal: one of them decides, and the 4 others do the work.

  3. 3 The 4 workers are the worker nodes, or simply nodes. A node runs containers: today those of other apps, and soon yours, wherever there is room.other appsnodes

    The 4 workers are the worker nodes, or simply nodes. A node runs containers: today those of other apps, and soon yours, wherever there is room.

  4. 4 The fifth server runs the control plane, the part of Kubernetes that decides which node runs what and keeps track of it all. Here it is one server; real clusters run it on several, for the same Sunday reason.control planeI decide wherethings run, andI keep track.nodesother apps

    The fifth server runs the control plane, the part of Kubernetes that decides which node runs what and keeps track of it all. Here it is one server; real clusters run it on several, for the same Sunday reason.

  5. 5 The control plane is ready to decide, but it cannot guess your wish. How do you tell it, and how much do you have to explain?3 containersof my appyoucontrol planeReady whenyou are.

    The control plane is ready to decide, but it cannot guess your wish. How do you tell it, and how much do you have to explain?

  6. Quick check

    One Sunday, the server of the control plane stops.Do the containerson the nodesstop too?

    One Sunday, the server of the control plane stops.

    Show the answer

    No. The nodes keep running the containers they have. But nothing new can be added until the control plane is back.

  7. Go further

    Two more names, for the servers of a cluster.control plane nodethe name of aserver that runsthe control planehigh availabilitythe control planeon several servers,so the cluster goeson when one stops

    Two more names, for the servers of a cluster.

Next episode Kubernetes manifest: you write what you want, never how

Share this comic

More comics