mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-10-23 20:22:03 +02:00
- Assert every node reports the expected K3s kubelet version - Verify the active CNI (Flannel / Calico / Cilium) is Ready and runs the expected image tag, including Calico TigeraStatus Available - Verify the active load balancer (MetalLB / kube-vip) runs the expected image tags and that MetalLB is absent when kube-vip is active - Assert no Flannel DaemonSet remains when Calico or Cilium is enabled - Assert the example LoadBalancer address falls inside the configured pool range - Add a manifest-only Cilium BGP regression test that renders the v2 template with zero, one, and multiple neighbors and rejects any v2alpha1 or CiliumBGPPeeringPolicy output
17 lines
574 B
YAML
17 lines
574 B
YAML
---
|
|
- name: Verify
|
|
run_once: true
|
|
delegate_to: "{{ outside_host }}"
|
|
block:
|
|
- name: "Test CASE: Get kube config"
|
|
ansible.builtin.import_tasks: kubecfg-fetch.yml
|
|
- name: "TEST CASE: Get nodes"
|
|
ansible.builtin.include_tasks: test/get-nodes.yml
|
|
- name: "TEST CASE: Verify components"
|
|
ansible.builtin.include_tasks: test/verify-components.yml
|
|
- name: "TEST CASE: Deploy example"
|
|
ansible.builtin.include_tasks: test/deploy-example.yml
|
|
always:
|
|
- name: "TEST CASE: Cleanup"
|
|
ansible.builtin.import_tasks: kubecfg-cleanup.yml
|