clay
clay

Reputation: 20370

Kubernetes: Configure Dedicated NodeGroup for specific Deployment + Default NodeGroup for everything else

I'd like to setup a Kubernetes cluster with two node groups: one node group reserved for a specific Deployment, and a second default nodegroup for everything else. I'd like default pod scheduling to not use the dedicated node group and only use the default group.

One strategy is:

Would this work? Would this be ideal? Is there a better strategy?

Upvotes: 2

Views: 485

Answers (1)

P Ekambaram
P Ekambaram

Reputation: 17615

You are spot on. Your approach is correct. It should work

Alternatively you can add default node label to all nodes in default node group. And dedicated node label to dedicated node group. Define node affinity and anti affinity to get the pods scheduled to appropriate nodes

Upvotes: 2

Related Questions