2020-12-01 19:00:50 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: crun | Copy runtime class manifest
|
2021-03-02 09:57:19 +00:00
|
|
|
template:
|
2020-12-01 19:00:50 +00:00
|
|
|
src: runtimeclass-crun.yml
|
|
|
|
dest: "{{ kube_config_dir }}/runtimeclass-crun.yml"
|
2021-03-02 09:57:19 +00:00
|
|
|
mode: "0664"
|
2020-12-01 19:00:50 +00:00
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube-master'][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-master'][0]
|