kubectlBasics

kubectl get

Lists one or more resources of a given type.

Syntax

kubectl get <resource> [-n <namespace>]

Examples

List pods in a namespace

kubectl get pods -n production

List all resources with more detail

kubectl get pods -o wide