mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-21 09:47:35 +07:00
28 lines
706 B
YAML
28 lines
706 B
YAML
|
- name: Install Cilium
|
||
|
kubernetes.core.helm:
|
||
|
name: cilium
|
||
|
chart_ref: cilium
|
||
|
chart_repo_url: "{{ cilium_repo_url }}"
|
||
|
chart_version: "{{ cilium_version }}"
|
||
|
release_namespace: "{{ cilium_namespace }}"
|
||
|
values: "{{ cilium_values }}"
|
||
|
|
||
|
- name: Wait for Cilium CRDs
|
||
|
kubernetes.core.k8s_info:
|
||
|
kind: CustomResourceDefinition
|
||
|
name: "{{ item }}"
|
||
|
loop:
|
||
|
- ciliuml2announcementpolicies.cilium.io
|
||
|
- ciliumloadbalancerippools.cilium.io
|
||
|
register: crd
|
||
|
until: crd.resources | length > 0
|
||
|
retries: 5
|
||
|
delay: 10
|
||
|
|
||
|
- name: Apply Cilium resources
|
||
|
kubernetes.core.k8s:
|
||
|
template: "{{ item }}"
|
||
|
loop:
|
||
|
- ciliuml2announcementpolicy.yaml
|
||
|
- ciliumloadbalancerippool.yaml
|