2020-12-02 03:00:50 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: crun | Copy runtime class manifest
|
2021-03-02 17:57:19 +08:00
|
|
|
template:
|
2020-12-02 03:00:50 +08:00
|
|
|
src: runtimeclass-crun.yml
|
|
|
|
dest: "{{ kube_config_dir }}/runtimeclass-crun.yml"
|
2021-03-02 17:57:19 +08:00
|
|
|
mode: "0664"
|
2020-12-02 03:00:50 +08:00
|
|
|
when:
|
2021-03-24 08:26:05 +08:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
2020-12-02 03:00:50 +08:00
|
|
|
|
|
|
|
- name: crun | Apply manifests
|
|
|
|
kube:
|
|
|
|
name: "runtimeclass-crun"
|
|
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
|
|
resource: "runtimeclass"
|
|
|
|
filename: "{{ kube_config_dir }}/runtimeclass-crun.yml"
|
|
|
|
state: "latest"
|
|
|
|
when:
|
2021-03-24 08:26:05 +08:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|