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.
SubscribeRelated
kubectl describekubectl api-resourceskubectl get -fkubectl get -kkubectl explain