kubectl-get
Get Kubernetes objects and resources. tldr-pages
On several platforms
Several platforms
Get all namespaces in the current cluster
kubectl get [nsIdentifyGet nodes in a specified namespace
kubectl get [no --namespace namespaceIdentify--namespaceIf present, the namespace scope for this CLI request kubectl referenceGet pods in a specified namespace
kubectl get [po --namespace namespaceIdentify--namespaceIf present, the namespace scope for this CLI request kubectl referenceGet deployments in a specified namespace
kubectl get [deploy --namespace namespaceIdentify--namespaceIf present, the namespace scope for this CLI request kubectl referenceGet services in a specified namespace
kubectl get [svc --namespace namespaceIdentify--namespaceIf present, the namespace scope for this CLI request kubectl referenceGet other resources
kubectl get persistentvolumeclaimsIdentifyGet all resources in all namespaces
kubectl get all --all-namespacesIdentify--all-namespacesIf present, list the requested object(s) across all namespaces. kubectl referenceGet Kubernetes objects defined in a YAML manifest file
kubectl get --filename path/to/manifest.yamlIdentify--filenameFilename, directory, or URL to files identifying the resource to get from a server. kubectl reference