CmdID

CmdID / Commands

kubectl-get

Get Kubernetes objects and resources. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Get all namespaces in the current cluster

kubectl get [nsIdentify

Get nodes in a specified namespace

kubectl get [no --namespace namespaceIdentify
--namespaceIf present, the namespace scope for this CLI request kubectl reference

Get pods in a specified namespace

kubectl get [po --namespace namespaceIdentify
--namespaceIf present, the namespace scope for this CLI request kubectl reference

Get deployments in a specified namespace

kubectl get [deploy --namespace namespaceIdentify
--namespaceIf present, the namespace scope for this CLI request kubectl reference

Get services in a specified namespace

kubectl get [svc --namespace namespaceIdentify
--namespaceIf present, the namespace scope for this CLI request kubectl reference

Get other resources

kubectl get persistentvolumeclaimsIdentify

Get all resources in all namespaces

kubectl get all --all-namespacesIdentify
--all-namespacesIf present, list the requested object(s) across all namespaces. kubectl reference

Get 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