mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-19 04:00:11 -03:30
Feature DynamicKubeletConfig is deprecated in 1.22 and will not move to GA (#7938)
* Feature DynamicKubeletConfig is deprecated in 1.22 and will not move to GA * Add check for dynamic_kubelet_configuration with kube >= 1.22
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
path: "{{ dynamic_kubelet_configuration_dir }}"
|
||||
mode: 0600
|
||||
state: directory
|
||||
when: dynamic_kubelet_configuration
|
||||
when:
|
||||
- dynamic_kubelet_configuration
|
||||
- kube_version is version('v1.22.0', '<')
|
||||
|
||||
- name: Set kubelet api version to v1beta1
|
||||
set_fact:
|
||||
|
||||
@@ -18,7 +18,7 @@ KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
|
||||
--container-runtime=remote \
|
||||
--container-runtime-endpoint=unix://{{ cri_socket }} \
|
||||
{% endif %}
|
||||
{% if dynamic_kubelet_configuration %}
|
||||
{% if dynamic_kubelet_configuration and kube_version is version('v1.22.0', '<') %}
|
||||
--dynamic-config-dir={{ dynamic_kubelet_configuration_dir }} \
|
||||
{% endif %}
|
||||
--runtime-cgroups={{ kubelet_runtime_cgroups }} \
|
||||
|
||||
Reference in New Issue
Block a user