Browse Source

set selinux type t_etc if selinux state is enforcing (#7791)

pull/7800/head
spaced 3 years ago
committed by GitHub
parent
commit
bf54dc082b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. 1
      roles/kubernetes/node/tasks/kubelet.yml

1
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

Loading…
Cancel
Save