Skip to content

Commit

Permalink
🚀 Launch MetalLB application (#50)
Browse files Browse the repository at this point in the history
We need MetalLB for networking in a cluster with multiple nodes. This
only installs the service, configuration comes later.
  • Loading branch information
nomaster authored Feb 24, 2024
1 parent 6d443ad commit 0a4561d
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
14 changes: 14 additions & 0 deletions base/metallb/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: metallb
spec:
interval: 1h
install:
createNamespace: false
chart:
spec:
chart: metallb
sourceRef:
kind: HelmRepository
name: metallb
7 changes: 7 additions & 0 deletions base/metallb/helm-repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: metallb
spec:
url: https://metallb.github.io/metallb
interval: 1h
7 changes: 7 additions & 0 deletions base/metallb/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
resources:
- helm-release.yaml
- helm-repository.yaml
- namespace.yaml
4 changes: 4 additions & 0 deletions base/metallb/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system
15 changes: 15 additions & 0 deletions clusters/k3s1/apps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: metallb
namespace: flux-system
spec:
interval: 1h
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./base/metallb
prune: false
1 change: 1 addition & 0 deletions clusters/k3s1/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- flux-system
- ../../environments/prod
- traefik-config.yaml
- apps.yaml
patchesStrategicMerge:
- dendrite-helm-release.yaml
- grafana-helm-release.yaml

0 comments on commit 0a4561d

Please sign in to comment.