Top 10 kubectl commands

Top 10 Kubectl commands you must know








kubectl is a command-line tool used to deploy and manage applications on Kubernetes clusters. Here are 10 commonly used kubectl commands:

  1. kubectl get pods: List all pods running in the current namespace.
  2. kubectl get deployments: List all deployments running in the current namespace.
  3. kubectl get services: List all services running in the current namespace.
  4. kubectl create deployment: Create a new deployment using a specified image.
  5. kubectl expose deployment: Expose a deployment as a service.
  6. kubectl scale deployment: Scale a deployment to a specified number of replicas.
  7. kubectl delete deployment: Delete a deployment.
  8. kubectl describe pod: Show detailed information about a specific pod.
  9. kubectl logs: Show logs for a specific container within a pod.
  10. kubectl exec: Run a command in a specific container within a pod.

Comments

Popular posts from this blog

Azure Virtual Machine checklist

What is cloud computing