DEV Community

Sai N
Sai N

Posted on

Kubernetes Basic Commands for your Playground

Kubernetes is a open source platform mainly helps us on managing and scaling of containerization applications.

These are the most Kubernetes commands for handy which are should be handy for our most of the projects.

  • kubectl get pods
  • kubectl get pods -o wide -A
  • kubectl get services
  • kubectl get nodes
  • kubectl get namespace
  • kubectl delete
  • kubectl delete namespaces
  • kubectl delete -f
  • kubectl delete pod
  • kubectl config view
  • kubectl config use-context contextName
  • kubectl get-config
  • kubectl rollout status deploymentName
  • kubectl port-forward podname port1:port2
  • kubectl expose deployment
  • kubectl scale deployment deploymentName
  • kubectl -exec podname --shellname
  • kubectl logs -c
  • kubectl apply -f
  • kubectl describe service
  • kubectl describe pod

Top comments (0)