Node
A node is a worker machine in Kubernetes that runs containerized applications as pods.
Mental Model
A node is like a computer in a computer lab. It has its own CPU, memory, storage, and can run multiple programs (pods) simultaneously. Kubernetes treats all nodes as interchangeable resources.
YAML Example
apiVersion: v1
kind: Node
metadata:
name: node-1
labels:
role: worker
zone: us-west-1
spec:
capacity:
cpu: "4"
memory: 8GiCommon Misconceptions
- ✗Nodes are physical machines only - FALSE: Can be VMs or physical
- ✗All nodes must run the same OS - FALSE: Can be heterogeneous
- ✗Pods are tied to specific nodes - FALSE: Pods can be rescheduled
Key Takeaways
- • A node is a worker machine in Kubernetes that runs containerized applications as pods.
- • A node is like a computer in a computer lab. It has its own CPU, memory, storage, and can run multip...
- • Check the YAML example for implementation details
- • Be aware of the common misconceptions listed above