mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-09 14:56:49 +07:00
11 lines
308 B
YAML
11 lines
308 B
YAML
- name: Ensure MetalLB namespace exist
|
|
kubernetes.core.k8s:
|
|
api_version: v1
|
|
kind: Namespace
|
|
name: "{{ metallb_namespace }}"
|
|
state: present
|
|
|
|
- name: Create MetalLB config base on network info
|
|
kubernetes.core.k8s:
|
|
definition: "{{ lookup('template', 'configmap.yaml.j2') | from_yaml }}"
|