mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-19 08:48:05 +07:00
9f0d389abc
Installed using Ansible instead of ArgoCD because Cilium replaces the default CNI, so ArgoCD pod cannot be scheduled before Cilium is installed.
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
|