Skip to content
masterclass Buddy

Kubernetes · Command

kubectl get

kubectl get displays one or more Kubernetes resources. It can filter resources and print them in several formats, including tables, YAML, JSON, templates, and JSONPath.

Last updated

Syntax

kubectl get [(-o|--output=)json|yaml|kyaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file|custom-columns|custom-columns-file|wide] (TYPE[.VERSION][.GROUP] [NAME | -l label] | TYPE[.VERSION][.GROUP]/NAME ...) [flags]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • kubectl describe
  • kubectl api-resources
  • kubectl explain
  • kubectl diff

Source: kubectl get | Kubernetes. Checked 2026-11-03.