49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# flux bootstrap points the flux-system Kustomization at ./clusters/homelab
|
|
# and applies everything under it (prune: true), so these Kustomization
|
|
# objects are how the rest of the repo gets pulled in.
|
|
#
|
|
# One object per app, each with its own sourceRef/interval/prune, rather
|
|
# than a single Kustomization pointed at all of apps/ — see README.md
|
|
# "Why it's structured this way" for the reasoning (independent failure
|
|
# domains, independent `flux get kustomization <name>` debugging). All
|
|
# three share the same sourceRef because they all come from this one repo
|
|
# — sourceRef is what to fetch from, path is where inside it to look.
|
|
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: podinfo
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 10m
|
|
path: ./apps/podinfo
|
|
prune: true
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: flux-system
|
|
---
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: hello-app
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 10m
|
|
path: ./apps/hello-app
|
|
prune: true
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: flux-system
|
|
---
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: headlamp
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 10m
|
|
path: ./apps/headlamp
|
|
prune: true
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: flux-system
|