diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2022-04-01 12:24:16 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2022-04-19 10:35:14 +0000 |
commit | 579c49314f3bcadaf835d98fb05b35b50590bcbf (patch) | |
tree | 9d02e4e07572556b8b434eed22469cf902f069ad | |
parent | 668a62362ca02720d1627184ec0c1767f5ce1587 (diff) |
[ANSIBLE] Enable DynamicKubeletConfig feature gate for Kubelet
Since Kubernetes 1.22.0, it's required to enable the DynamicKubeletConfig
feature gate on Kubelet to use the --dynamic-config-dir flag
Change-Id: I64823906bd1de1419502c055218ecfcd30a61009
Issue-ID: OOM-2948
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r-- | ansible/roles/rke/defaults/main.yml | 1 | ||||
-rw-r--r-- | ansible/roles/rke/templates/cluster.yml.j2 | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/rke/defaults/main.yml b/ansible/roles/rke/defaults/main.yml index c0bd5ef8..e69ede2d 100644 --- a/ansible/roles/rke/defaults/main.yml +++ b/ansible/roles/rke/defaults/main.yml @@ -7,6 +7,7 @@ kubernetes_config_dir: "/etc/kubernetes" kubelet: static_config: "kubelet-static-config.yml" runtime_request_timeout: "2m0s" + feature_gates: "DynamicKubeletConfig=true" cluster_config_dir: "{{ app_data_path }}/cluster" # Whether dashboard is exposed. rke_dashboard_exposed: true diff --git a/ansible/roles/rke/templates/cluster.yml.j2 b/ansible/roles/rke/templates/cluster.yml.j2 index 55447286..2d4233c8 100644 --- a/ansible/roles/rke/templates/cluster.yml.j2 +++ b/ansible/roles/rke/templates/cluster.yml.j2 @@ -70,6 +70,7 @@ services: extra_args: dynamic-config-dir: "/kubelet-dynamic-config-dir" config: "/kubelet-static-config.yml" + feature-gates: {{ kubelet.feature_gates }} extra_binds: - "{{ kubernetes_config_dir }}/{{ kubelet.static_config }}:/kubelet-static-config.yml:ro" extra_env: [] |