kubernetes Docs - https://kubernetes.io/docs/
--dry-run: By default as soon as the command is run, the resource will be created. If you simply want to test your command , use the --dry-run=client option. This will not create the resource, instead, tell you whether the resource can be created and if your command is right.
kubectl run nginx --image=nginx
kubectl get pods
kubectl describe pods
kubectl delete pods frontend-rwldh
kubectl run nginx --image=nginx --dry-run=client -o yaml
kubectl get replicasets.apps
kubectl scale nginx-deployment --replicas=5
kubectl delete replicaset.apps backend
kubectl get deployment.app
kubectl describe deployment.apps nginx-deployment | grep -i image
kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1
kubectl create deployment --image=nginx nginx
kubectl create deployment --image=nginx nginx --dry-run -o yaml
kubectl get rs
kubectl scale deployment/nginx-deployment --replicas=5
kubectl create deployment nginx --image=nginx --replicas=4
kubectl apply -f deployment-namespace.yaml
kubectl expose pod redis --port=6379 --name redis-service --dry-run=client -o yaml
kubectl get namespace
kubectl get pods --namespace dev
kubectl run redis --image=redis --namespace finance
kubectl create service nodeport nginx --tcp=80:80 --node-port=30080 --dry-run=client -o yaml
kubectl get pods --all-namespaces | grep blue
kubectl -n dev get svc
kubectl run nginx-pod --image=nginx:alpine
kubectl run redis --image=redis:alpine --labels=tier=db
kubectl expose pod redis --name redis-service --port 6379 --target-port 6379
kubectl describe svc redis-service
kubectl run custom-nginx --image=nginx --port=8080
kubectl describe node node01 | grep -i taint
kubectl taint node node01 test=value:NoSchedule
kubectl get nodes node01 --show-labels
kubectl label nodes node01 color=blue
kubectl get pods -o wide