Node Notes

2 min read

Node notes read Node resource state directly (for operators that manage Nodes as children) and navigate _node topology summaries embedded in Pod children by enrich: [node].


Reference

NoteDescription
nodeReadyReturns true when the Node’s Ready condition status is "True".
nodeAllocatableCPUReturns `status.
nodeAllocatableMemoryReturns `status.
nodeConditionReturns the status string of the named node condition, or "" when absent — common types are Ready, MemoryPressure, and DiskPressure.
nodeTaintsReturns a comma-separated list of taint keys on the node, or "" when no taints are present.
podNodeNameReturns `_node.
podNodeZoneReturns `_node.
podNodeRegionReturns `_node.
podNodeInstanceTypeReturns `_node.

Examples

# nodeReady
when:
  - field: "{{ nodeReady .children.node }}"
    equals: "true"

# nodeAllocatableCPU
- path: allocatableCPU
  value: "{{ nodeAllocatableCPU .children.node }}"
# → "3920m"

# nodeAllocatableMemory
- path: allocatableMemory
  value: "{{ nodeAllocatableMemory .children.node }}"
# → "15032020Ki"

# nodeCondition
- path: memoryPressure
  value: "{{ nodeCondition .children.node \"MemoryPressure\" }}"
# → "False"

# nodeTaints
- path: taints
  value: "{{ nodeTaints .children.node }}"
# → "node.kubernetes.io/not-ready"

# podNodeName
- path: nodeName
  value: "{{ podNodeName .children.pod }}"
# → "ip-10-0-1-5.us-east-2.compute.internal"

# podNodeZone
- path: zone
  value: "{{ podNodeZone .children.pod }}"
# → "us-east-2a"

# podNodeRegion
- path: region
  value: "{{ podNodeRegion .children.pod }}"
# → "us-east-2"

# podNodeInstanceType
- path: instanceType
  value: "{{ podNodeInstanceType .children.pod }}"
# → "t3.medium"