How to set the desired state to pods in a node

development

#1

How can we set the desired state to number of pods in a node.


#2

Set the desired state? What do you mean? Like “running”?

I don’t follow, can you please elaborate?


#3


As you can see here I have scaled the app to 10 pods and the desired number has been set to 10 so if one of the 10 pods go down or deleted then replication controller will create new pod to maintan the desired state.

What I am asking that how to change that desired state number according to our needs???


#4

Change the number of replicas of the deployment.

If that doesn’t mean anything to you, please consider starting at docs.kubernetes.io for documentation about these things. It contains all of thesecommon stuff like that :slight_smile:


#5

So changing the number of replicas is similar as changing the desired state???


#6

Yes, please read the docs. You specify the desired number of replicas :slight_smile: