Why node-problem-detector belongs in a self-managed Kubernetes cluster
node-problem-detector belongs in a self-managed cluster because it turns silent node failures into signals the cluster can see. A kernel hang, a stalled container runtime or a failing disk often does not stop the node from reporting Ready. The scheduler keeps placing pods on that node, and the application symptoms appear far from the cause. node-problem-detector is the component that watches for these conditions at the node level and makes them visible through the Kubernetes API.
According to its project documentation, node-problem-detector runs as a daemon on each node. It watches system logs and runs custom checks, then reports what it finds as node conditions and events that operators can query with kubectl describe node and alert on from their monitoring stack. It reports problems but does not fix them: it does not cordon, drain or reboot anything on its own. The project is maintained by the Kubernetes community, so confirm the current release, the supported problem detectors and the configuration format in the project repository before you standardize on a version.
For a self-managed cluster, the decision is less about whether to run the daemon and more about who owns the signals. Your team must decide which conditions count as blocking, which should only raise an alert, and who acts when a node reports a kernel or runtime fault. Ask any partner to show how those conditions reach your alerting path and what runbook a responder follows, because a condition that nobody watches gives you the same outcome as no detector at all.
Which node problems it can surface and where each signal comes from
The kernel problem daemon watches the kernel log and matches lines against a set of rules, so it surfaces problems the kernel reports itself, such as out-of-memory kills, filesystem errors, hung tasks and some network or device messages. Matches are turned into node conditions or events that the control plane can see, which lets operators find a degraded node without logging into it. The detector reads the kernel log through its own rule set, so coverage depends on which messages those rules match and on the kernel version and log format of your nodes.
- Signal source: the kernel ring buffer, read through the log interface on each node and matched against configured patterns.
- Scheduler view: a matched rule sets a problem condition on the Node object, and the scheduler can take that into account only if your own tooling or taints act on it.
- Operator view: events and conditions appear in
kubectl describe nodeoutput, which gives a timeline of when a kernel message first matched. - Version sensitivity: message wording changes between kernel releases, so a rule that matches on one distribution may not match on another.
- Confirm: which kernel messages the shipped rules cover for your distribution and kernel, and which ones you must add yourself.
Before relying on kernel signals, reproduce a known fault in a test node and confirm the condition appears as expected.
The runtime problem daemon watches the container runtime through its own health checks and log patterns, so it can report when the runtime stops responding or starts logging known failure messages. These signals matter because a node with a failing runtime may still show Ready for a while, and pods can stall without an obvious cause. The exact checks depend on the runtime in use, so you need to confirm which runtime and which service names your nodes expose before writing expectations.
- Signal source: runtime service health checks and runtime log messages on the node.
- Scheduler view: a runtime problem appears as a condition on the Node, which is useful input for alerts and for any automation you attach to it.
- Operator view: runtime events show up next to the node, often before application symptoms such as pods stuck in creating or terminating states.
- Runtime differences: containerd and CRI-O expose different service names and log formats, so the rules must match your choice.
- Confirm: which runtime version you run, which health checks the shipped configuration uses for it, and whether your kubelet logs contain the messages you expect to match.
Test runtime faults by stopping the runtime on a drained test node and checking that the condition changes and that the alert fires.
Hardware and custom problems depend on sources outside the default kernel and runtime checks. Disk, memory and device faults can be exposed through system logs or hardware tooling, and your team can add custom problem daemons for site-specific conditions such as a failed NIC bond, a missing GPU device or a mounted volume that disappears. Custom daemons report through the same node condition mechanism, so their output is visible to the same alerts and remediation paths as the built-in ones.
- Signal source: system logs, device state files or a script or service that checks a hardware or site condition.
- Scheduler view: a custom condition is a node condition like any other, but nothing consumes it unless you configure a taint, alert or remediation for it.
- Operator view: a custom condition needs a clear name and a documented owner, or operators will not know what action it implies.
- Build effort: each custom daemon needs its own check logic, testing and maintenance across node images.
- Confirm: which hardware sources your servers actually expose, whether your vendor tooling is supported on your hardware, and who owns each custom condition.
Review each custom condition with the teams who will respond to it before you enable it on production nodes.
Configuration options and when each fits
This table compares the main node-problem-detector choices: shipped or custom log rules, built-in or custom problem daemons, condition-only or event reporting, and all nodes or a labeled subset. Read each row for when the option fits and what ongoing rule maintenance it adds. The main takeaway is that every custom rule and daemon becomes code your team must keep matched to kernel, runtime and hardware changes.
| Choice | Option | When it fits | Ongoing rule maintenance cost |
|---|---|---|---|
| Log rules | Shipped log-monitor rules | Common kernel, runtime and filesystem messages that match your OS and container runtime versions | Low, but log message formats change across kernel and runtime upgrades, so confirm matches after each node image change |
| Log rules | Custom log-monitor rules | Vendor driver, GPU or storage messages the shipped rules do not catch | Higher: each regex needs an owner, a test sample from real logs and review after OS or driver updates |
| Health checks | Built-in system stats checks | Problems you can detect from system state, such as process or resource conditions the project already supports | Low: mostly configuration review, but confirm which checks your build enables |
| Health checks | Custom problem daemons | Hardware or vendor checks, such as disk SMART or a device tool, that need logic beyond log matching | High: the daemon is software you build, test, version and patch like any other service |
| Reporting | Node conditions only | Alerting and automation that read node status, where a condition change is the trigger you want | Low: one status signal to track, but condition names must match your alert and remediation rules |
| Reporting | Node conditions plus events | Investigation needs a timeline of when and why a problem appeared, for example during incident review | Moderate: event volume grows with noisy rules, so set retention and filter events you do not act on |
| Scope | All nodes | Homogeneous pools where the same kernel and runtime problems apply everywhere | Lower per rule, but rules that are wrong for one node type create noise across the whole fleet |
| Scope | Labeled subset (for example GPU or storage nodes) | Hardware-specific checks that only make sense on certain nodes | Moderate: each label, selector and rule set must stay aligned as node pools are added or retired |
How to deploy node-problem-detector as a DaemonSet
This sequence takes a cluster from no node-level signal to a working deployment where kernel and runtime problems appear as node conditions and events. Each step produces a check you can run before moving on, so failures are found on one node before the rollout reaches the whole fleet.
Confirm node log access and kernel log source
Your platform engineers check each node image to confirm where kernel messages are written and whether the daemon can read them. On systemd-based hosts this usually means the journal, while some images expose kernel output through a file or a device path. Compare the result across every node pool, since a hardened or minimal image can differ from the others. You are done when you can read recent kernel messages from a shell on each pool, and you have written down the log source path or journal access method that the monitor configuration will reference.
Prepare the image and registry path
The platform team mirrors the node-problem-detector image into a registry the cluster can reach, then pins the tag to a specific version rather than a floating one. In air-gapped clusters, the same step applies to every image the cluster pulls, and kubeadm can help with the control plane side through its image commands and a private repository setting. Your team confirms the pull works from a node in each pool, including nodes that have no outbound internet access. You are done when a test pull from each pool succeeds and the image reference is recorded in your deployment manifests.
Set RBAC so the daemon can patch node status
Create a ServiceAccount for the daemon in its own namespace, then bind a ClusterRole that allows it to read and update node status and to create events. Keep the permissions to these resources and verbs only, and avoid granting broad cluster-admin or wildcard access. The security team should review the role and confirm it matches what the daemon actually calls. You are done when
kubectl auth can-ireturns yes for patching node status and creating events, and no for unrelated actions such as reading Secrets.Deploy the DaemonSet with tolerations
Apply a DaemonSet so one pod runs on every node, then add tolerations for control plane taints and any custom taints your pools use, so the daemon does not skip nodes that carry them. Mount the host log path read-only and set resource requests and limits so the daemon cannot starve workloads. Confirm the scheduler placed a pod on each node, including the control plane and tainted pools. You are done when the DaemonSet reports a desired count equal to your node count and every pod is Running.
Load the monitor configuration as a ConfigMap
Store the monitor definitions, which describe which log patterns to match and which conditions and events to raise, in a ConfigMap and mount it into the daemon. Keep the file under version control so changes go through review. Restart or reload the pods after applying the ConfigMap, then check the daemon logs for parse errors on the monitor files. You are done when the logs show each configured monitor loaded without errors and the ConfigMap matches the version in your repository.
Verify conditions with kubectl describe node
Run
kubectl describe nodeon a node and confirm the expected conditions appear in the Conditions section with a recent heartbeat. Ask the platform team to confirm the condition names against the monitors they configured, since names come from your own configuration. Verification is incomplete until this check passes on each node pool, not only on one node. You are done when the conditions are listed and their status matches the healthy state on every pool.Test a problem and confirm the condition and event
On a non-production node, trigger a known test message that matches one of your monitor patterns, using a method approved by your change process, such as writing a matching line to a test log source. Watch the node conditions and the event stream with
kubectl get eventsto confirm the expected condition flips and an event is recorded. Then clear the test condition and confirm it returns to healthy. Record the test result and the exact pattern used so the same check can be repeated after upgrades. You are done when the test produces the expected condition and event, and the recovery is observed.
How node problems flow from node logs to alerts and remediation
The flow starts with kernel log and container runtime sources on each node, which the node-problem-detector DaemonSet reads and matches against its rules. Problems become node conditions patched through the API server, and events are recorded alongside them. Prometheus or another alerting path reads those conditions, and an optional remediation controller may act on the node. Check that the detector's service account can patch node status only, and that the remediation controller's permissions are scoped separately.
Problem signals move from node logs through the API server to alerts and optional remediation.
When to write custom problem daemons and what they must do
The built-in problem daemons cover common kernel and runtime signals, but many failures are specific to your hardware or site. The cards below cover when a custom daemon earns its place and the rules it should follow before it reports anything into node conditions.
Hardware health checks
Disk SMART attributes, GPU health queries and NIC error counters often show decline before a node fails. A custom daemon can translate these readings into a node condition so the scheduler and your alerts see them alongside kernel problems. Check which vendor tools expose the data your hardware needs, how often the query runs, and whether the query itself can stall on a failing device.
Site-specific runtime checks
Some failures only matter in your environment, such as a required mount missing, a NTP offset beyond your tolerance, or a storage path that stops answering. Write these checks against the conditions your workloads depend on, not against generic thresholds. Document the expected state for each check so on-call engineers can tell a real fault from a site change.
The condition contract
Each custom condition needs a stable type, a short machine-readable reason, a human-readable message, and a clear rule for when the condition returns to healthy. Without a defined clear path, a condition can stay set after the fault is gone and suppress scheduling or trigger remediation repeatedly. Confirm the exact plugin interface and field names in the node-problem-detector repository before writing code.
Report only, never act
A problem daemon should observe and report. Restarting services, cordoning nodes or deleting pods belongs to a separate remediation controller with its own guardrails, rate limits and audit trail. Mixing action into a detector makes false positives expensive and hard to trace. Review every daemon's RBAC and host access so it cannot change state it does not need to change.
Staged fault testing before rollout
Test each daemon against a staged fault on a non-production node before it reaches the fleet. Simulate the failure, confirm the condition appears with the expected reason, then remove the fault and confirm the condition clears. Record the results so you can repeat the test after upgrades to the daemon, the host OS or the hardware driver.
Ownership and version control
Custom daemons need an owner, a change process and a release path like any other in-house software. Keep their source, container image and DaemonSet manifests in version control, and tie each release to the node-problem-detector version it was built against. Ask your team to confirm who responds when a daemon itself fails or starts producing noise.
How to alert on node conditions and pair them with remediation
Alert on node conditions only after they persist, and treat automated remediation as a gated action rather than a reflex. node-problem-detector publishes problems as node conditions and events, and kube-state-metrics exposes node conditions as kube_node_status_condition series that Prometheus can evaluate. A rule that fires on the first NotReady or KernelDeadlock transition will page people for transient blips, while a rule with a for duration that matches the failure mode filters out noise. Confirm the exact metric names and label sets in your kube-state-metrics version before writing rules, and make sure the rules live beside the Prometheus alerting setup covered in the sibling monitoring pages so that node alerts route through the same Alertmanager receivers as the rest of the cluster.
Remediation tooling such as cordon, drain or node replacement is a separate decision that should be designed with the operations team, not bolted onto the alert. Gate every automated action on three controls: a threshold that requires the condition to persist and to affect a bounded share of nodes, a rate limit that caps how many nodes an automation may cordon or drain in a given window so a faulty detector cannot empty a pool, and a PodDisruptionBudget review so drains do not breach application availability. Hardware faults, such as disk or memory errors reported by a custom problem daemon, should route to a human approval step before any node is removed or replaced, because the evidence may need to be preserved for the hardware vendor or an incident review. Ask your team to document who may approve, how long a cordoned node may stay cordoned, and what evidence is captured first.
Security and operational considerations for node-level agents
Node problem detection gives a DaemonSet privileged visibility into every node, and the signals it produces are only as trustworthy as the access around them. The cards below cover the decisions that connect the agent's privileges, its RBAC, the logs it reads, its configuration and its own health.
Restrict the image source and pin versions
The detector runs with privileged or host log access, so a tampered image gives an attacker code running on every node. Pull the image only from a registry you control, pin it to a digest or exact tag, and mirror it into a private registry for clusters without internet access. Ask your platform team who can push to that registry and how image signatures are checked before admission. Upgrade the agent on the same schedule as your node image.
Limit RBAC to node status patching
The agent needs to read nodes and patch their status and conditions, and little else. Bind a dedicated ServiceAccount to a narrow ClusterRole with only the verbs and resources it uses, and avoid reusing a broad service account from another chart. Check the effective permissions with kubectl auth can-i after every change. Any extra verb, such as write access to pods or secrets, widens what a compromised agent can do across the cluster.
Treat host log access as sensitive data
Reading kernel and system logs exposes messages that can reveal memory addresses, process names, device details and user activity. Mount only the log paths the problem rules need, and mount them read-only. Decide where the agent's events go and who can read them, since events are visible to anyone with broad read access to the namespace. Confirm the same retention and access rules that apply to your other node logs also apply here.
Review the problem rules as code
Log patterns, thresholds and custom problem daemons decide which failures become node conditions, so a changed regex can silently hide a real fault. Keep the ConfigMap in Git, require a review for each change, and test new patterns against sample log lines from your own nodes before rollout. Record which condition types page on-call and which only appear in dashboards, so reviewers can judge each change against that intent.
Guard node conditions against spoofing
Node conditions are ordinary fields on the Node object, so anyone with patch rights on nodes can set a condition to True and trigger alerts or remediation. Restrict patch access on node status to the detector's service account and to cluster administrators. Pair automated remediation with a second signal, such as a metric from the kubelet or a direct host check, before a drain or reboot runs. Audit changes to node status through the API audit log.
Monitor the agent for crash loops
A detector that stops reporting looks the same as a healthy node with no problems, so silence is a failure mode that needs its own alert. Watch the pod restart count and readiness for the DaemonSet, and alert when any node's agent is missing or crash-looping. Check that the agent starts after node reboots and that its resource requests allow it to run under memory pressure. Confirm which team owns this alert and what they do when it fires.
Questions teams ask before deploying node-problem-detector
What does a node-problem-detector deployment cost in effort, and who pays for each part?
The cost is mostly engineering time, and it splits into four parts: rule tuning, custom problem daemons, alert design and automated remediation. Rule tuning depends on how your node operating system logs kernel, container runtime and hardware faults, so it is paid once at the start and again whenever the OS or runtime changes. Custom daemons cost more when your hardware or storage vendors expose faults in ways the default rules do not cover. Alert design is recurring work, because thresholds need review as your fleet changes. Remediation is the most expensive part, since automatic cordon, drain or reboot actions need change control and rollback paths. Ask a partner to price each of the four parts separately in the written scope.
How long does a first node-problem-detector deployment usually take?
Duration depends on how many node pools you run, how many distinct failure modes you want to surface, and how much remediation you plan to automate. A basic DaemonSet install with the default rules and a few alerts is the shortest path. Each custom problem daemon adds design, testing and review time, and remediation adds the most because every automatic action needs a tested rollback and approval from operations. Ask the partner for a timeline tied to named phases and to the number of node pools in scope, and confirm which environments, such as a staging cluster, are included before production.
What does the work need from our team?
Expect to provide four things: access to node operating systems or a configuration management method to deploy the DaemonSet and any log source settings, a container registry where the node-problem-detector image and custom daemon images can be pulled, a working Prometheus setup that can scrape the exporter and evaluate alert rules, and a change control process that approves rule and remediation changes. Node-level access is the item teams most often underestimate, because the detector reads kernel and runtime logs from the host. Confirm with your platform team which of these already exist and who approves changes before the engagement starts.
Can an in-house platform team deploy node-problem-detector alone?
Often yes for the basic deployment, and the work is mainly configuration, testing and alerting. Teams that already run Kubernetes and Prometheus usually have the skills for the DaemonSet, the default rules and a first set of alerts. Help is more useful for custom problem daemons written against your hardware, for remediation logic that must be safe on production nodes, and for reviewing alert noise after the first weeks of data. Decide which parts your team owns after handover, and ask any partner to document the rules, the daemons and the runbooks so the knowledge stays in your organization.
How does node-problem-detector differ from alerting in kube-prometheus-stack?
kube-prometheus-stack alerts mostly on cluster state and metrics that Kubernetes and its exporters already publish, such as pod restarts, resource pressure and API health. node-problem-detector reads symptoms from the node itself, including kernel log messages, container runtime problems and some hardware faults, and reports them as node conditions and events. The two work together: the detector turns host-level faults into signals that Prometheus alert rules can use, and the stack provides the dashboards, alert routing and retention. Replacing one with the other is not the usual design, and the alert rules for node conditions should be reviewed alongside your existing stack alerts.
What risks should we check before enabling automated node remediation?
The main risk is that an automatic action on a node removes capacity at the wrong time, for example a drain or reboot that moves too many pods at once. Check how your workloads handle disruption, whether pod disruption budgets exist, how many nodes can be out of service together, and whether remediation respects maintenance windows. Also test that the remediation cannot loop on a node with a recurring fault. Ask any partner to show how remediation is limited, logged and reversible, and to test it on a non-production pool first.
What should we ask a partner to include in a written quote?
Ask for the scope in writing, with each component listed: the DaemonSet deployment, the rules you want enabled, each custom problem daemon, the alert rules and routing, and any remediation automation. For each component, ask what the partner will deliver, what you must provide, and what testing is included. Ask which node pools and clusters are covered, how changes will be approved, what documentation and runbooks you receive, and what ongoing tuning or support is excluded. Ask for the assumptions behind the effort estimate so you can check them against your own environment. DeployOpen provides a quote after the written scope is agreed, and most engagements are fixed-scope.
How DeployOpen scopes node problem detection work
A node problem detection engagement starts with a written scope that answers three questions: which node images and fault classes must be surfaced, which problem daemons and rules will run, and where automated action stops and a person takes over. DeployOpen starts with an inventory of the node operating systems, kernel versions, container runtimes and hardware types in your clusters, because node-problem-detector behaves differently on each. The inventory also records which problems you already see in incident history, such as kernel deadlocks, container runtime hangs, disk or filesystem read-only remounts and NIC errors, so the first rule set targets real failures instead of a generic list. Confirm with your platform team which node image pipeline produces the nodes, since changes to the image often need to ship alongside daemon configuration.
The scope then fixes the detection surface: which built-in system log monitors and counter rules are enabled, which custom plugin monitors (scripts or binaries) are needed for your hardware, and how the resulting node conditions and events map to alerts. Alert and remediation boundaries are settled in the same document. For example, you may decide that a read-only root filesystem pages on-call immediately, while a repeated kubelet restart pattern may trigger cordon and drain only after a threshold is met. Any automated remediation tool, such as a node auto-repair controller, needs an explicit list of conditions it may act on, the maximum number of nodes it may take out of service at once, and who approves changes to that list. Ask your team to confirm how remediation interacts with pod disruption budgets and your maintenance windows.
Verification is where the written scope is proven. DeployOpen plans staged faults on a non-production cluster that match each agreed fault class, then checks that the expected node condition appears, that the event carries useful text, that the alert fires and routes to the right channel, and that any remediation stops at the agreed limits. Each staged fault is recorded with its expected result, so the same tests can be rerun after node image or kernel upgrades. Tuning after go-live is available as a retainer, which covers reviewing false positives, adding rules for new hardware and retesting after changes. Request a quote that lists the node images in scope, each fault class with its test method, and the remediation boundaries signed off by your operations owner.

