jedimt.kubernetes_metallb
Ansible Role: Kubernetes MetalLB
This role installs the MetalLB software load balancer in a Kubernetes cluster.
Requirements
You need a working Kubernetes cluster.
Role Variables
This role can install either the configmap-based MetalLB version 0.12.1 or the CRD-based version 0.13.x.
# Choose MetalLB version for the load balancer (v0.13.9 | v0.12.1)
metallb_version: "v0.13.9"
# For the older configmap-based versions, the last version is v0.12.1
# metallb_version: "v0.12.1"
# IP addresses for services needing a load balancer
# This example shows a range of five IP addresses
metallb_start: 10.100.24.48
metallb_end: 10.100.24.52
# URL to get MetalLB manifests for v0.13x versions
metallb_v13_url: "https://raw.githubusercontent.com/metallb/metallb/{{ metallb_version }}/config/manifests"
# URLs for MetalLB manifests for v0.12.x version
metallb_v12_base_url: https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests
metallb_v12_namespace_url: "{{ metallb_v12_base_url }}/namespace.yaml"
metallb_v12_metallb_url: "{{ metallb_v12_base_url }}/metallb.yaml"
Dependencies
There are no dependencies.
Example Playbook
# ===========================================================================
# Install MetalLB L2 load balancer
# ===========================================================================
- name: Install MetalLB load balancer
hosts: k8s_master
become: true
roles:
- jedimt.kubernetes_metallb
License
MIT
Author Information
Aaron Patten
aaronpatten@gmail.com
Installa
ansible-galaxy install jedimt.kubernetes_metallb
Licenza
mit
Download
109
Proprietario