Certainly! Here are additional kubectl commands:
Get Deployments:
kubectl get deploymentsGet ReplicaSets:
kubectl get replicasetsGet Namespaces:
kubectl get namespacesCreate a Resource from a File:
kubectl create -f <file.yaml>Scale a Deployment:
kubectl scale deployment <deployment-name> --replicas=<number>Rollout Status of a Deployment:
kubectl rollout status deployment/<deployment-name>Rollback a Deployment:
kubectl rollout undo deployment/<deployment-name>Drain a Node (for maintenance):
kubectl drain <node-name>Uncordon a Node (to make it schedulable again):
kubectl uncordon <node-name>Get Events:
kubectl get events
These commands will help you manage various resources and operations within your Kubernetes cluster effectively.
