Fix: metallb bootstrap

This commit is contained in:
2025-02-02 14:09:28 +08:00
parent a817ae1e6b
commit d4e0701e61
7 changed files with 18 additions and 4 deletions

View File

@@ -2,13 +2,29 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: metallb name: metallb-helm
namespace: flux-system namespace: flux-system
spec: spec:
interval: 10m0s interval: 10m0s
path: ./metallb-system/ path: ./metallb-system/helminstall
prune: true prune: true
force: false force: false
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: infrastructures name: infrastructures
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: metadata-resources
namespace: flux-system
spec:
interval: 10m0s
path: ./metallb-system/crd-resources
prune: true
force: false
dependsOn:
- metallb-helm
sourceRef:
kind: GitRepository
name: infrastructures

View File

@@ -7,8 +7,6 @@ generatorOptions:
resources: resources:
- namespace.yaml - namespace.yaml
- helmrelease.yaml - helmrelease.yaml
- l2advertisement.yaml
- ipaddresspool.yaml
configMapGenerator: configMapGenerator:
- name: metallb-values - name: metallb-values
files: files: