openstack-helm-infra/roles/deploy-env/tasks/flannel.yaml
Vladimir Kozhukalov 62f12e3a1f Add Flannel deployment to deploy-env role
Change-Id: I72f3f29196ea1d433655c8862ac34718df18c7ea
2024-07-15 12:12:48 -05:00

21 lines
581 B
YAML

---
- name: Add Flannel Helm repo
become: false
when: inventory_hostname in (groups['primary'] | default([]))
block:
- name: Add Flannel chart repo
kubernetes.core.helm_repository:
name: flannel
repo_url: "https://flannel-io.github.io/flannel/"
- name: Install Flannel
kubernetes.core.helm:
name: flannel
chart_ref: flannel/flannel
namespace: kube-flannel
create_namespace: true
chart_version: "{{ flannel_version }}"
release_values:
podCidr: "{{ kubeadm.pod_network_cidr }}"
...