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:
kubectl get pods
: List all pods running in the current namespace.kubectl get deployments
: List all deployments running in the current namespace.kubectl get services
: List all services running in the current namespace.kubectl create deployment
: Create a new deployment using a specified image.kubectl expose deployment
: Expose a deployment as a service.kubectl scale deployment
: Scale a deployment to a specified number of replicas.kubectl delete deployment
: Delete a deployment.kubectl describe pod
: Show detailed information about a specific pod.kubectl logs
: Show logs for a specific container within a pod.kubectl exec
: Run a command in a specific container within a pod.
Comments
Post a Comment