-
Notifications
You must be signed in to change notification settings - Fork 11
Remove old scheduler configs #780
Conversation
| clientConnection: | ||
| kubeconfig: /etc/kubernetes/kubeconfig/scheduler.yaml | ||
| failureDomains: kubernetes.io/hostname,failure-domain.beta.kubernetes.io/zone,failure-domain.beta.kubernetes.io/region | ||
| hardPodAffinitySymmetricWeight: 1 |
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.
Moved to scheduler policy config in kubernetes/kubernetes#44159
| kind: KubeSchedulerConfiguration | ||
| clientConnection: | ||
| kubeconfig: /etc/kubernetes/kubeconfig/scheduler.yaml | ||
| failureDomains: kubernetes.io/hostname,failure-domain.beta.kubernetes.io/zone,failure-domain.beta.kubernetes.io/region |
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.
Removed in k8s 1.13 in change from componentconfig/v1alpha1 to kubescheduler.config.k8s.io/v1alpha1.
| @@ -1,8 +1,4 @@ | |||
| kind: KubeSchedulerConfiguration | |||
| algorithmSource: | |||
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.
Deprecated, defaults to DefaultProvider.
|
Tested on after change: |
calvix
left a comment
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
|
Did we made sure that the behaviour that those flags were defining is preserved (by other flags/options)? |
I think we can tell from the code and the warning message ( |
|
I'm not questioning this PR, I'm just assuming we added those flags for a reason in the first place. And it would be nice to eventually evaluate if we still care about them and if there are alternative ways to ensure the behaviour stays the same :) I have no idea what the flags are doing though so I could be talking nonsense 🤷♀️ |
For sure. These were deprecated several years ago so it's hard to tell what they did exactly. I tried reading through the Kubernetes git history, but they don't talk about why, only what. My guess is that the scheduler used to handle failure domains in a special way from other affinity/anti-affinity (if affinity even existed back then) but it has been subsumed by new features. |
Towards https://github.com/giantswarm/giantswarm/issues/12349. Kubernetes 1.16 adds strict decoding of the scheduler config which surfaced that we are setting some fields removed in Kubernetes 1.13. This leads to a warning and slightly less safe config loading. I'm deleting the deleted fields and those where the value matches the default.
Checklist