yq
A command-line tool that reads, queries and edits YAML files the way jq handles JSON.
In more detail
It is useful for changing one field in a large manifest without opening an editor. Exam environments do not promise it is installed, so kubectl's own output options and a text editor remain the safe default.
Example
yq '.spec.replicas = 3' -i deploy.yamlRelated terms
- YAML — A human-friendly text format for configuration, where indentation shows structure.
- JSON — A simple text format for structured data made of keys, values, lists and nested objects.
Taught in
- Spend Two Hours Like A Points Table — Certified Kubernetes Administrator (CKA) Exam Prep
- Two Hours, Twenty Tasks: Exam Strategy — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Final Review: Where Your Marks Are At Risk — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Two Hours, Sixteen Tasks: A CKS Plan — Certified Kubernetes Security Specialist (CKS) Exam Prep