k3s-cluster/kubernetes/main/flux/config/cluster.yaml

106 lines
2.5 KiB
YAML
Raw Permalink Normal View History

2023-04-02 16:58:44 +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:
name: home-cluster
2023-04-02 16:58:44 +00:00
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: main
secretRef:
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
---
# 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:
name: cluster-secrets
2023-04-02 16:58:44 +00:00
namespace: flux-system
spec:
timeout: 5m
interval: 10m
path: ./kubernetes/main/secrets
2023-04-02 16:58:44 +00:00
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
2024-01-23 00:31:00 +00:00
decryption:
provider: sops
secretRef:
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: ./kubernetes/main/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: ./kubernetes/main/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: ./kubernetes/main/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