Add metallb

This commit is contained in:
dvirlabs 2025-05-30 14:15:00 +03:00
parent 0160914ad8
commit e52b110d2e
6 changed files with 27 additions and 18 deletions

View File

@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: metallb-base
namespace: argocd
spec:
project: infra
source:
repoURL: https://github.com/metallb/metallb.git
targetRevision: v0.13.10
path: config/manifests
destination:
server: https://kubernetes.default.svc
namespace: metallb-system
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -1,17 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: metallb
name: metallb-config
namespace: argocd
spec:
project: default
source:
repoURL: https://git.dvirlabs.com/dvirlabs/infra.git
targetRevision: HEAD
path: manifests/metallb
path: manifests/metallb/config
destination:
server: https://kubernetes.default.svc
namespace: metallb-system
dependsOn:
- metallb-base
syncPolicy:
automated:
prune: true

View File

@ -1,5 +0,0 @@
# התקנת CRDs והרכיבים הרשמיים
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml

View File

@ -6,10 +6,3 @@ metadata:
spec:
addresses:
- 192.168.10.240-192.168.10.250
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: l2
namespace: metallb-system

View File

@ -0,0 +1,5 @@
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: l2
namespace: metallb-system

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system