2022-01-22 06:01:07 +08:00
|
|
|
---
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Youki | Copy runtime class manifest
|
2022-01-22 06:01:07 +08:00
|
|
|
template:
|
|
|
|
src: runtimeclass-youki.yml
|
|
|
|
dest: "{{ kube_config_dir }}/runtimeclass-youki.yml"
|
|
|
|
mode: "0664"
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Youki | Apply manifests
|
2022-01-22 06:01:07 +08:00
|
|
|
kube:
|
|
|
|
name: "runtimeclass-youki"
|
|
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
|
|
resource: "runtimeclass"
|
|
|
|
filename: "{{ kube_config_dir }}/runtimeclass-youki.yml"
|
|
|
|
state: "latest"
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|