-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster.yaml
39 lines (39 loc) · 927 Bytes
/
cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/source.toolkit.fluxcd.io/gitrepository_v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: homelab
namespace: flux-system
spec:
interval: 30m
url: ssh://[email protected]/hcavarsan/homelab/
ref:
branch: main
secretRef:
name: github-creds
ignore: |
# exclude all
/*
# include kubernetes directory
!/kubernetes
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_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
name: homelab
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
optional: false