Use flux kustomization for metallb depends

This commit is contained in:
SeanOMik 2023-04-04 19:03:36 -04:00
parent a24f0ec34e
commit 647198ef99
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
7 changed files with 49 additions and 6 deletions

View File

@ -3,4 +3,3 @@ kind: Kustomization
resources: resources:
- ./namespace.yaml - ./namespace.yaml
- ./helm-release.yaml - ./helm-release.yaml
- ./metallb-static-ips.yaml

View File

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

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./metallb-static-ips.yaml

View File

@ -0,0 +1,38 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: cluster-core-metallb
namespace: flux-system
spec:
path: ./cluster/core/networking/metallb/app
prune: true
sourceRef:
kind: GitRepository
name: flux-system
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: metallb
namespace: metallb-system
interval: 30m
retryInterval: 1m
timeout: 3m
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: cluster-core-metallb-config
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-metallb
path: ./cluster/core/networking/metallb/config
prune: true
sourceRef:
kind: GitRepository
name: flux-system
wait: true
interval: 30m
retryInterval: 1m
timeout: 3m

View File

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