diff --git a/roles/kubernetes/node/tasks/kubelet.yml b/roles/kubernetes/node/tasks/kubelet.yml index 88204e012..26560a72b 100644 --- a/roles/kubernetes/node/tasks/kubelet.yml +++ b/roles/kubernetes/node/tasks/kubelet.yml @@ -17,6 +17,7 @@ template: src: "kubelet.env.{{ kubeletConfig_api_version }}.j2" dest: "{{ kube_config_dir }}/kubelet.env" + setype: "{{ (preinstall_selinux_state == 'enforcing') | ternary('t_etc', omit) }}" backup: yes mode: 0640 notify: Node | restart kubelet