> For the complete documentation index, see [llms.txt](https://edsonha.gitbook.io/my-gitbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edsonha.gitbook.io/my-gitbook/junior-to-senior-1/kubernetes/kubectl.md).

# Kubectl

```
kubectl run --replicas=1000 my-web-server
// run thousand replicas of my-web-server

kubectl scale --replicas=2000 my-web-server
// for scaling up

kubectl rolling-update my-web-server --image=web-server:2
// rolling upgrade 

kubectl rolling-update my-web-server --rollback
// roll back upgrade

kubectl run hello-minikube 
// used to deploy an application on the cluster

kubectl cluster-info 
// view information about the cluster

kubectl get nodes 
// use to list all the nodes part of the cluster
```
