fix: configure Kubernetes feature gates with dictionaries (#13608)

* fix: configure Kubernetes feature gates with dictionaries

* docs: update feature gate settings to dictionaries
This commit is contained in:
Frank
2026-10-15 15:26:39 +00:00
committed by GitHub
parent 6b3cbe1cbb
commit bebc536fae
11 changed files with 59 additions and 57 deletions
@@ -20,6 +20,15 @@ etcd_supported_versions:
kube_proxy_deployed: "{{ 'addon/kube-proxy' not in kubeadm_init_phases_skip }}"
# cri-dockerd does not support WebSocket streaming to the kubelet.
# https://github.com/kubernetes-sigs/kubespray/issues/13360
_kubelet_feature_gates: >-
{{ (kubelet_feature_gates | default(kube_feature_gates, true)) | combine(
{'ExtendWebSocketsToKubelet': false}
if container_manager == 'docker' and kube_version is version('1.36.0', '>=') else
{}
) }}
# Sysctl floors: only applied when the node's current value is lower than
# the desired one, so pre-tuned images and newer kernels are not regressed.
# Values are aligned with OpenShift Node Tuning Operator and kops, and