Back to All Commands
Most Viewed
Favorites
Recently Viewed
kubernetes Commands
Resource Management
kubectl describe
Show details of a specific resource or group of resources.
kubectl describe
Examples:
Describe podkubectl describe pod my-pod
kubectl describe service my-service
kubectl describe node my-node
Monitoring
kubectl top
Show resource usage (CPU/memory/storage) for nodes or pods.
kubectl top
Examples:
Show node resource usagekubectl top nodes
kubectl top pods
Debugging
Networking
kubectl port-forward
Forward one or more local ports to a pod.
kubectl port-forward
Examples:
Forward portkubectl port-forward my-pod 8080:80
kubectl port-forward my-pod 8080:80 8443:443
Scaling
Deployment
kubectl rollout
Manage the rollout of a deployment.
kubectl rollout
Examples:
Check rollout statuskubectl rollout status deployment/my-deployment
kubectl rollout undo deployment/my-deployment
kubectl rollout pause deployment/my-deployment
Configuration
kubectl config
Modify kubeconfig files.
kubectl config
Examples:
View current contextkubectl config current-context
kubectl config get-contexts
kubectl config use-context my-context