📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Kubernetes Kubectl Basics

Kubectl Basics

5 min read Quiz at the end
Master kubectl commands: get, describe, apply, delete, logs, exec, and context switching.

Kubectl Basics

# Context and cluster
kubectl config get-contexts
kubectl config use-context my-cluster
kubectl cluster-info

# Get resources
kubectl get pods
kubectl get pods -n kube-system
kubectl get all
kubectl get pods -o wide       # show node and IP
kubectl get pods -o yaml       # full YAML

# Describe (detailed info + events)
kubectl describe pod mypod
kubectl describe node mynode

# Delete
kubectl delete pod mypod
kubectl delete -f manifest.yaml