An Ansible role for ensuring the configuration of MetalLB.
Requires Kubernetes installed.
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
metallb_version | yes | v0.8.3 | matches release tag | metallb version to install |
network_prefix | yes | 192.168.0 | first 3 octets | The ip address prefix for ips to use |
images_cache_path | no | not defined | Path | Path to folder used to cache saved Docker images |
cache_container_timeout | no | 300 seconds | Integer value | Number of seconds before Ansible times out |
An example can be found used in my Hands-on DevOps course's ansible/master-playbook.yml.
- hosts: masters
remote_user: vagrant
roles:
- common
- docker
- docker-compose
- k3s-server
- metallb
The above Ansible playbook uses my
- Common role to configure the instance past the base CentOS 7, Alpine 3.10 or Ubuntu Bionic image
- Docker role to install and configure Docker
- Docker-compose role to install Docker-compose
- K3s-server role to install Lightweight Kubernetes (K3s)
- This role to install MetalLB
For more information and to see this role put into action checkout my Hands-on DevOps class project.
3-Clause BSD License
Michael Joseph Walsh mjwalsh@nemonik.com