62f12e3a1f
Change-Id: I72f3f29196ea1d433655c8862ac34718df18c7ea
21 lines
581 B
YAML
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 }}"
|
|
...
|