feat(metallb): Installing MetalLB using ArgoCD

This commit is contained in:
Vegard Hagen
2023-01-07 15:19:10 +01:00
parent 24e0284a56
commit d81b83c243
6 changed files with 42 additions and 10 deletions
+2 -4
View File
@@ -12,9 +12,7 @@ spec:
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
destination:
namespace: applications
name: in-cluster
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
+18
View File
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: infra
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: infra
source:
path: infra
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
destination:
name: in-cluster
syncPolicy:
automated:
selfHeal: true
+1
View File
@@ -6,6 +6,7 @@ resources:
- namespace.yaml
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- ingress.yaml
- infra.yaml
- applications.yaml
# Let Traefik manage TLS-termination
-5
View File
@@ -1,5 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- metallb
+21
View File
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: metallb
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
path: infra/metallb
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
destination:
namespace: metallb-system
name: in-cluster
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
-1
View File
@@ -1,6 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
resources: