kubectl get
Display one or many resources kubectl reference
24 options Its page in the kubectl reference
Options
--all-namespaces, -AIf present, list the requested object(s) across all namespaces.--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.--chunk-sizeReturn large lists in chunks rather than all at once.--field-selectorSelector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2).--filename, -fFilename, directory, or URL to files identifying the resource to get from a server.--help, -hhelp for get--ignore-not-foundIf set to true, suppresses NotFound error for specific objects that do not exist.--kustomize, -kProcess the kustomization directory.--label-columns, -LAccepts a comma separated list of labels that are going to be presented as columns.--no-headersWhen using the default or custom-column output format, don't print headers (default print headers).--output, -oOutput format.--output-watch-eventsOutput watch event objects when --watch or --watch-only is used.--rawRaw URI to request from the server.--recursive, -RProcess the directory used in -f, --filename recursively.--selector, -lSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)).--server-printIf true, have the server return the appropriate table output.--show-kindIf present, list the resource type for the requested object(s).--show-labelsWhen printing, show all labels as the last column (default hide labels column)--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--sort-byIf non-empty, sort list types using this field specification.--subresourceIf specified, gets the subresource of the requested object.--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.--watch, -wAfter listing/getting the requested object, watch for changes.--watch-onlyWatch for changes to the requested object(s), without listing/getting first.