You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
Update TAS configuration script to handle K8s Scheduler v19 to v25
This commit will:
- use control-plane as labels for TAS POD tolerations and NodeAffinity rules
- update TAS deployment nodeAffinity& tolerations rules via the configuration-scheduler.sh
- document changes to tolerations and nodeAffinity rules for TAS pods
Signed-off-by: Madalina Lazar <[email protected]>
must match the scheduler configuration, so use those files. If you instead want to use your own cert, you need to configure the scheduler to match.
108
108
</details>
109
109
110
+
Note: From K8s v24+ the control-plane node labels have changed, from `node-role.kubernetes.io/master` to `node-role.kubernetes.io/control-plane`.
111
+
This change affects how TAS gets deployed as the toleration and nodeAffinity rules have to be changed accordingly.
112
+
In order to provide support for future versions of K8s, both of these rules have been changed to make use of the `node-role.kubernetes.io/control-plane`
If you are running a version of Kubernetes **older that v1.24**, you will need to change both rules in the file above to use
115
+
`node-role.kubernetes.io/master`. To see how this can be done automatically please see [this shell script](deploy/extender-configuration/configure-scheduler.sh)
echo"Version of the image used in the kube scheduler is: $scheduler_image"
131
+
[ -z"${currentKubeSchedulerApiVersion}" ] &&echo"Invalid API version for Kube Scheduler Configuration, got: $currentKubeSchedulerApiVersion. Exit..."&&exit 1
echo"Version of the image used in the kube scheduler is: $SCHEDULER_VERSION"
148
+
get_kube_scheduler_api_version
149
+
echo"Version of the KubeScheduler API: $KUBE_SCHEDULER_API_VERSION"
105
150
106
151
####### CLEAN_UP MANIFEST FILE
107
152
# In case the previous run of this script was partially successful or unsuccessful, we'd like to start from a clean
@@ -153,96 +198,50 @@ sed -e "/ volumes:/a\\
153
198
154
199
####### VERSION SPECIFIC MANIFEST_FILE CHANGES. These are necessary, but change according to the version of Kubernetes
155
200
156
-
## Before K8s v22 we will use the Policy API instead of the Scheduler Config API in order to setup the scheduler
157
-
if [ "$scheduler_image"-lt$scheduler_image_version_22 ];then
158
-
echo"[IMPORTANT] Will proceed by using the Policy API to configure the scheduler extender. This API will be **DEPRECATED** from $scheduler_image_version_22 onwards"
159
-
# Create the config map and the cluster role for the scheduler configuration.
160
-
#The cluster role is needed in Kubeadm to ensure the scheduler can access configmaps.
echo"[IMPORTANT]Will proceed by using the kube-scheduler Configuration API instead for the scheduler extender. This API will be **USED** from $scheduler_image_version_22 onwards."
0 commit comments