Are you looking for a solution Kubernetes scale down specific pods? We are here to assist you.
Contents
Steps to Kubernetes scale down specific pods:
1.Delete replication controller
You can delete replication controller by using the instruction given in kubectl delete
.
2. Delete X desired pods
Delete the desired replica set. Follow the instruction given in the link.
3. Recreate the replication controller of size X
Here I have given an example apply according to yours
kubectl apply -f https://k8s.io/examples/controllers/replication.yaml
replicationcontroller/nginx created
Check ReplicationController status by using the following command:
kubectl describe replicationcontrollers/nginx
FINAL WORDS:
I hope you got it now. If you have any other doubts or information leave it in command we will analyze it.