Skip to content
masterclass Buddy

DevOps · Command

kubectl get

kubectl get displays one or more Kubernetes resources. It supports resource filters and several output formats, including YAML, JSON, wide text, JSONPath, and custom columns.

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 get -f
  • kubectl get -k
  • kubectl explain

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