Create kubernetes object
kubectl create -f <file_name>
kubectl get all
kubectl get pods
kubectl get pods -o wide
kubectl get pod <pod_name>
kubectl delete pod <pod_name>
kubectl get replicationcontroller
You can use rs instead of replicationcontroller
kubectl describe replicationcontroller <replication_controller_name>
kubectl delete replicationcontroller <replication_controller_name>
kubectl get replicaset
You can also use rs instead of replicaset
kubectl describe replicaset <replica_set_name>
kubectl delete replicaset
kubectl replace -f <file_name>
kubectl scale --replicas=<no_of_new_replicas> -f <file_name>
Eg. kubectl scale --replicas=5 -f <file_name>
kubectl scale --replicas=<no_of_new_replicas> <resource_type> <resource_name>
Eg. kubectl scale --replicas=5 replicaset <resource_name>
kubectl get deployments
kubectl describe deployments
kubectl delete deployment <deployment_name>
kubectl apply -f <file_name>
kubectl rollout undo deployment <deployment_name>