FahamLah

Commands

kubectl explain

kubectl explain <type>[.field.field]

Risk: Safe

What it does

Shows the built-in docs for a field.

When to use it

You forgot what a YAML field means.

Example

$ kubectl explain deployment.spec.replicas

What does replicas mean?