https://rancher.com/ logo
#rke2
Title
j

jolly-eye-77963

03/09/2023, 9:07 AM
Is there a skeleton full RKE2 config.yaml or guide to customising images like the scheduler?
c

creamy-pencil-82913

03/09/2023, 9:11 AM
The config file is just CLI flags in yaml. Any flag is a valid key.
Server flags are listed here: https://docs.rke2.io/reference/server_config
kube-scheduler-image is what you'd be looking for
j

jolly-eye-77963

03/09/2023, 9:31 AM
yes - i’ve been looking at that - i’ve launched the cluster through the Rancher UI/Web application (as we use that to manage multiple clusters) - and cannot determine where the kube-scheduler-image tag would go in the config
Is there a guide to creating scheduling plugins for RKE2? and how to deploy them?
b

bulky-sunset-52084

03/09/2023, 4:54 PM
You should not be swapping out the scheduler on RKE2. Honestly RKE2 is supposed to be prepackaged and opinionated k8s (everything just works and is tested out of the box) in a supportable format. If you want to modify core kubernetes components it might be best to use a distro like upstream kubeadm or even k8s from scratch.
c

creamy-pencil-82913

03/09/2023, 5:05 PM
There are a bunch of docs upstream about running alternative schedulers alongside the default one. You should do that instead of replacing the default.
https://kubernetes.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/ Any pods you want scheduled by the custom scheduler can have
*schedulerName*: my-scheduler
in the pod spec
6 Views