diff --git a/infrastructure/metalLB/application.yaml b/infrastructure/metalLB/application.yaml new file mode 100644 index 0000000..2c44649 --- /dev/null +++ b/infrastructure/metalLB/application.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: metallb + namespace: argocd +spec: + project: default + source: + repoURL: https://metallb.github.io/metallb + chart: metallb + targetRevision: 0.14.8 # Prüfe kurz nach der aktuellsten Version + helm: + releaseName: metallb + destination: + server: https://kubernetes.default.svc + namespace: metallb-system # MetalLB besteht auf diesem Namespace + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true diff --git a/infrastructure/metalLB/values.yaml b/infrastructure/metalLB/values.yaml new file mode 100644 index 0000000..314fb36 --- /dev/null +++ b/infrastructure/metalLB/values.yaml @@ -0,0 +1,17 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: first-pool + namespace: metallb-system +spec: + addresses: + - 192.168.1.200-192.168.1.220 # <-- HIER DEINEN BEREICH EINTRAGEN +--- +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: l2-advertisement + namespace: metallb-system +spec: + ipAddressPools: + - first-pool