mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-14 16:21:58 +00:00
Automatic merge from submit-queue (batch tested with PRs 62481, 62643, 61877, 62515). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add write-config-to to scheduler **What this PR does / why we need it**: Scheduler should be able to write its default configure to file. This actually applies to all components which claims options other than `--config` will be deprecated. Otherwise, users will be super confused to find out how to write a proper config file to these components. See: https://stackoverflow.com/questions/47966440/how-to-create-a-config-file-for-kube-scheduler-to-use-by-the-config-argument ref: #52562 **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #58805 Usage: ```bash ./_output/bin/kube-scheduler --write-config-to /tmp/kube-scheduler.yaml ``` **Special notes for your reviewer**: This should have been fixed several releases ago, so lets include it in 1.11 **Release note**: ```release-note Add write-config-to to scheduler ```