red888
red888

Reputation: 31530

k8s dynamically set number of replicas relative to number of nodes

Is there a feature or param to put in my deployment yaml (kind: Deployment) to tell k8s to deploy as many replicas as there are nodes in the cluster?

Upvotes: 0

Views: 1675

Answers (2)

Raja
Raja

Reputation: 305

you can maybe use custom definitions for the autoscaler.

https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/

Upvotes: 0

Related Questions