c12s-kubespray/roles/kubernetes-apps/container_runtimes/crun/tasks/main.yaml

20 lines
516 B
YAML
Raw Permalink Normal View History

---
- name: crun | Copy runtime class manifest
template:
src: runtimeclass-crun.yml
dest: "{{ kube_config_dir }}/runtimeclass-crun.yml"
mode: "0664"
when:
- inventory_hostname == groups['kube_control_plane'][0]
- name: crun | Apply manifests
kube:
name: "runtimeclass-crun"
kubectl: "{{ bin_dir }}/kubectl"
resource: "runtimeclass"
filename: "{{ kube_config_dir }}/runtimeclass-crun.yml"
state: "latest"
when:
- inventory_hostname == groups['kube_control_plane'][0]