2023-04-02 16:58:44 +00:00
|
|
|
---
|
2024-05-04 01:26:26 +00:00
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/gitrepository_v1.json
|
2023-06-15 02:57:03 +00:00
|
|
|
apiVersion: source.toolkit.fluxcd.io/v1
|
2023-04-02 16:58:44 +00:00
|
|
|
kind: GitRepository
|
|
|
|
metadata:
|
2024-05-04 01:26:26 +00:00
|
|
|
name: home-cluster
|
2023-04-02 16:58:44 +00:00
|
|
|
namespace: flux-system
|
|
|
|
spec:
|
|
|
|
interval: 1m0s
|
|
|
|
ref:
|
|
|
|
branch: main
|
|
|
|
secretRef:
|
2024-05-04 01:26:26 +00:00
|
|
|
name: forgejo-deploy-key
|
2024-01-23 00:18:39 +00:00
|
|
|
url: ssh://git@git.seanomik.net/seanomik/k3s-cluster
|
2023-04-02 16:58:44 +00:00
|
|
|
---
|
2024-05-04 01:26:26 +00:00
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
2023-06-15 02:57:03 +00:00
|
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
2023-04-02 16:58:44 +00:00
|
|
|
kind: Kustomization
|
|
|
|
metadata:
|
2024-05-04 01:31:55 +00:00
|
|
|
name: cluster-secrets
|
2023-04-02 16:58:44 +00:00
|
|
|
namespace: flux-system
|
|
|
|
spec:
|
2024-05-04 01:31:55 +00:00
|
|
|
timeout: 5m
|
|
|
|
interval: 10m
|
|
|
|
path: ./cluster/secrets
|
2023-04-02 16:58:44 +00:00
|
|
|
prune: true
|
|
|
|
sourceRef:
|
|
|
|
kind: GitRepository
|
2024-05-04 01:26:26 +00:00
|
|
|
name: home-cluster
|
2024-01-23 00:31:00 +00:00
|
|
|
decryption:
|
|
|
|
provider: sops
|
|
|
|
secretRef:
|
2024-05-04 01:31:55 +00:00
|
|
|
name: sops-gpg
|
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
|
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
|
|
kind: Kustomization
|
|
|
|
metadata:
|
|
|
|
name: crds
|
|
|
|
namespace: flux-system
|
|
|
|
spec:
|
|
|
|
timeout: 5m
|
|
|
|
interval: 10m
|
|
|
|
path: ./cluster/crds
|
|
|
|
prune: true
|
|
|
|
sourceRef:
|
|
|
|
kind: GitRepository
|
|
|
|
name: home-cluster
|
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
|
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
|
|
kind: Kustomization
|
|
|
|
metadata:
|
|
|
|
name: core
|
|
|
|
namespace: flux-system
|
|
|
|
spec:
|
|
|
|
timeout: 5m
|
|
|
|
interval: 10m
|
|
|
|
dependsOn:
|
|
|
|
- name: cluster-secrets
|
|
|
|
- name: crds
|
|
|
|
path: ./cluster/core
|
|
|
|
prune: true
|
|
|
|
sourceRef:
|
|
|
|
kind: GitRepository
|
|
|
|
name: home-cluster
|
|
|
|
decryption:
|
|
|
|
provider: sops
|
|
|
|
secretRef:
|
|
|
|
name: sops-gpg
|
|
|
|
postBuild:
|
|
|
|
substitute: {}
|
|
|
|
substituteFrom:
|
|
|
|
- kind: ConfigMap
|
|
|
|
name: cluster-settings
|
|
|
|
- kind: Secret
|
|
|
|
name: cluster-secrets
|
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
|
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
|
|
kind: Kustomization
|
|
|
|
metadata:
|
|
|
|
name: apps
|
|
|
|
namespace: flux-system
|
|
|
|
spec:
|
|
|
|
timeout: 5m
|
|
|
|
interval: 10m
|
|
|
|
dependsOn:
|
|
|
|
- name: cluster-secrets
|
|
|
|
- name: core
|
|
|
|
path: ./cluster/apps
|
|
|
|
prune: true
|
|
|
|
sourceRef:
|
|
|
|
kind: GitRepository
|
|
|
|
name: home-cluster
|
|
|
|
decryption:
|
|
|
|
provider: sops
|
|
|
|
secretRef:
|
|
|
|
name: sops-gpg
|
|
|
|
postBuild:
|
|
|
|
substitute: {}
|
|
|
|
substituteFrom:
|
|
|
|
- kind: ConfigMap
|
|
|
|
name: cluster-settings
|
|
|
|
- kind: Secret
|
|
|
|
name: cluster-secrets
|