liveBook · Manning

Daemon

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

A daemon is a background process that runs persistently on an operating system without direct user interaction.

A daemon is a software process that runs continuously in the background without direct user interaction. In Kubernetes, the term describes both Linux background services and critical control-plane processes. section 1.8 section 1.5

Distinguish these Kubernetes uses of daemon:

  • A DaemonSet keeps a pod running on each node; kube-proxy and CNI components commonly use this pattern. section 1.8
  • kubelet is different: it runs directly as a Linux background process on the node and should not be managed by a DaemonSet. section 1.8
  • Control-plane daemons are critical services; production high availability replicates them and uses leader election, while replicated etcd stores redundant cluster state. section 1.5

Verify daemon processes

Run `kubectl get ds -A` to inspect DaemonSets across namespaces. Inspect the node’s host services with `sudo systemctl list-unit-files --type service | grep kubelet -A3 -B3`; start a stopped kubelet with `systemctl start kubelet`. section 1.8

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Explains daemon roles, contrasts kubelet with DaemonSets, and provides verification and recovery commands.
Examples
Uses kube-proxy, CNI, kubelet, control-plane services, kubectl output, and systemctl service listings.
What it assumes
Assumes basic process and Kubernetes component knowledge while introducing Linux background processes and their Kubernetes distinctions.
What you can do after
Diagnose daemon placement and kubelet availability using kubectl and systemctl.
How it connects
Connects daemons with Linux processes, DaemonSets, kubelet, kube-proxy, CNI, control-plane components, leader election, and etcd.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.