liveBook · Manning

Cluster node

As explained in Google Anthos in Action

A Kubernetes node is a machine that provides compute resources for running pods in a Kubernetes cluster.

A cluster node is a machine that runs Pods. Pod placement matters when workloads need particular hardware or local storage: a Pod requiring CUDA can fail to start if scheduled on a node without a GPU. section 3.2.7

Control placement at both the node and workload levels:

  • Label nodes to identify suitable targets, then use a node selector or node affinity in the workload. A label does not reject other Pods. section 3.2.7
  • Taint nodes to repel Pods without matching tolerations. Choose the taint effect according to whether scheduling should be blocked, discouraged, or existing Pods evicted. section 3.2.7
  • Use Pod affinity to place Pods together, or anti-affinity to spread them across nodes or zones. section 3.2.7

Reserve GPU-capable placement

Label a suitable node with `kubectl label nodes node1 gpu=true`, then target that label from the workload. If other Pods should be kept off the node, add a `NoSchedule` taint and give intended workloads a matching toleration. section 3.2.7

How Google Anthos in Action covers it

How deep it goes
Explains labels, taints, selectors, affinity, and tolerations through commands and manifests, without detailing scheduler internals.
Examples
Uses GPU placement, kubectl commands, and Pod manifests targeting hostnames or zones.
What it assumes
Assumes familiarity with Pods, deployment manifests, and kubectl while introducing node-level scheduling controls.
What you can do after
Operate/configure node placement with kubectl labels and taints alongside workload scheduling rules.
How it connects
Connects nodes to Pods, node selectors, affinity, anti-affinity, taints, and tolerations.

Also explained in

Compare how 3 books explain cluster node →

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.