metallb to kustomize

This commit is contained in:
2025-10-02 09:53:09 +02:00
parent b1d2de48dd
commit 1b104095d8
6 changed files with 34 additions and 65 deletions

View File

@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: metallb
repo: https://metallb.github.io/metallb
version: 0.14.5 # Use a specific version for reproducibility
releaseName: metallb
namespace: metallb-system
# You can add Helm values here if needed, e.g.:
# valuesInline:
# controller:
# logLevel: debug
resources:
- metallb-config.yaml

View File

@@ -0,0 +1,18 @@
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: primary-pool
namespace: metallb-system
spec:
addresses:
- 192.168.178.200-192.168.178.250
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: default
namespace: metallb-system
spec:
ipAddressPools:
- primary-pool