diff options
Diffstat (limited to 'ansible/roles/rke')
-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: [] |