set selinux type t_etc if selinux state is enforcing (#7791)
parent
3ff7bc1f64
commit
bf54dc082b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue