theshire/kubernetes/flux/config/cluster.yaml

45 lines
1 KiB
YAML
Raw Normal View History

2024-01-11 15:03:54 -06:00
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/gitrepository-source-v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
2024-01-11 17:50:28 -06:00
name: homelab
2024-01-11 15:03:54 -06:00
namespace: flux-system
spec:
interval: 30m
ref:
branch: main
2024-07-06 11:04:40 -05:00
url: https://git.hsn.dev/jahanson/homelab.git
2024-01-11 15:03:54 -06:00
ignore: |
# exclude all
/*
# include gitops dirs
!/kubernetes
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster
namespace: flux-system
spec:
interval: 30m
path: ./kubernetes/flux
prune: true
wait: false
sourceRef:
kind: GitRepository
2024-01-11 17:50:28 -06:00
name: homelab
2024-01-11 15:03:54 -06:00
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
optional: false
- kind: Secret
name: cluster-secrets
optional: false