kubectl 1.37 reference · 6 entries

kubectl Basics

Read, create, update and delete resources with kubectl get, describe, apply, delete, create and explain.

NameDescriptionSince
kubectl get List resources in a table, or print them as YAML, JSON, JSONPath or custom columns for scripts and debugging.
kubectl describe Show a detailed, human-readable view of a resource, including related events, the first place to look when debugging.
kubectl apply Create or update resources from files, directories or Kustomize folders declaratively; the standard way to deploy manifests.
kubectl delete Delete resources by name, file or label selector; deleting a namespace deletes everything inside it.
kubectl create Create resources imperatively from the command line: namespaces, deployments, configmaps, secrets, jobs and more.
kubectl explain Show documentation for any resource field straight from the cluster's API schema, including nested fields.

Was this page helpful?