-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
topology: add support for pod topology constraints #312
Conversation
b8ddae2
to
449c8b5
Compare
Any reason why we are not adding this for metric server as well? @zroubalik Do you want to have this in CORE as well? |
@tomkerkhove correct me if I am wrong, but based on the documentation, my understanding is that currently, only one replica of the keda-metrics-server is supported; in that case Pod Topology Constraints for this Pod is a bit useless, or do you disagree entirely :)? |
That is true, but same goes for the operator :) But it's not 100% the same limitation so it's fine, thanks for the PR! |
The operator supports multiple (>=2) replicas that also does leader-election. Please let me know if you want me to add support for the |
It's OK, we can leave metric server out |
We can have more than 1 instance in the metrics server. Even the traffic could be routed to a single instance (upstream limitation), recently we added support to specify more than 1 instance in metrics server. |
Alrighty, I will add support for that later tonight/tomorrow, thanks! |
890c3b8
to
512759e
Compare
@JorTurFer I added support for the |
Signed-off-by: Erik Nobel <erik@nobel.info> add constraint to metricsServer and change logic
512759e
to
440d619
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but we need to update the README
@@ -106,6 +106,7 @@ their default values. | |||
| `resources.metricServer` | Manage resource request & limits of KEDA metrics apiserver pod ([docs](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)) | `` | | |||
| `nodeSelector` | Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)) | `{}` | | |||
| `tolerations` | Tolerations for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)) | `{}` | | |||
| topologySpreadConstraints | object | `{}` | Pod Topology Constraints https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct as the correct fields are topologySpreadConstraints.operator
& topologySpreadConstraints.metricsServer
This PR adds support for
Pod Topology Constraints
for thekeda-operator
Pod.Checklist
Fixes #