feat: add option to enable selinux in containerd
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2022-11-14 09:47:14 +01:00
parent 65f73c3e0c
commit 28c003be55
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ k3s_reset: False
k3s_token: "secure-token"
k3s_node_ip: "{{ ansible_default_ipv4.address }}"
k3s_init_log_enabled: False
k3s_selinux_enabled: False
k3s_server: True
k3s_server_bind_ip: "0.0.0.0"

View File

@ -13,6 +13,7 @@
- url: https://docs.projectcalico.org/archive/v3.24/manifests/tigera-operator.yaml
dest: tigera-operator.yaml
k3s_init_log_enabled: True
k3s_selinux_enabled: True
pre_tasks:
- name: Override host variables
ansible.builtin.set_fact:

View File

@ -8,6 +8,7 @@ node-ip: "{{ k3s_node_ip }}"
kubelet-arg:
{{ __k3s_kubelet_arg | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
selinux: {{ k3s_selinux_enabled | bool | lower }}
{% if k3s_server | bool %}
bind-address: "{{ k3s_server_bind_ip }}"