This commit is contained in:
j 2025-07-10 22:58:37 +10:00
parent e7168a3039
commit 80344a23ec
17 changed files with 70 additions and 122 deletions

View file

@ -1,6 +0,0 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- authentik.yaml

View file

@ -3,5 +3,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- authentik.yaml
- bind.yaml
- certmanager.yaml
- externaldns.yaml
- nextcloud.yaml

View file

@ -1,100 +1,6 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: namespace
namespace: flux-system
spec:
interval: 1m
path: ./deployments/namespace
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: dns
namespace: flux-system
spec:
interval: 1m
path: ./deployments/dns
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: replicator
namespace: flux-system
spec:
interval: 1m
path: ./deployments/replicator
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: ssl
namespace: flux-system
spec:
interval: 1m
path: ./deployments/ssl
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: mariadb
namespace: flux-system
spec:
interval: 1m
path: ./deployments/mariadb
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: auth
namespace: flux-system
spec:
interval: 1m
path: ./deployments/auth
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: nextcloud
namespace: flux-system
spec:
interval: 1m
path: ./deployments/nextcloud # <— Make sure this points to your nextcloud manifests folder, NOT mariadb
prune: true
sourceRef:
kind: GitRepository
name: home-server-deployment
dependsOn:
- name: mariadb
resources:
- kusts/operators.yaml
- kusts/home-server.yaml

View file

@ -0,0 +1,30 @@
## I am so fucking mad with Flux right now I can't even begin explaining it.
# I have to do this because it doesn't respect order in kusts...
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: home-server-apps
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: main
url: ssh://git@repobase.net/j/home-server.git
secretRef:
name: ssh-credentials
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: home-server-apps
namespace: flux-system
spec:
interval: 1m0s
path: ./deployments/home-server
prune: true
sourceRef:
kind: GitRepository
name: home-server-apps
targetNamespace: home-server

View file

@ -0,0 +1,30 @@
## I am so fucking mad with Flux right now I can't even begin explaining it.
# I have to do this because it doesn't respect order in kusts...
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: operators
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: main
url: ssh://git@repobase.net/j/home-server.git
secretRef:
name: ssh-credentials
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: operators
namespace: flux-system
spec:
interval: 1m0s
path: ./deployments/operators
prune: true
sourceRef:
kind: GitRepository
name: operators
targetNamespace: home-server

View file

@ -1,6 +0,0 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- mariadb.yaml

View file

@ -1,6 +0,0 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- nextcloud.yaml

View file

@ -3,4 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- mariadb.yaml
- replicator.yaml
- namespace.yaml

View file

@ -54,3 +54,4 @@ spec:
dependsOn:
- name: mariadb-operator-crds
namespace: mariadb-system

View file

@ -1,6 +0,0 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- certmanager.yaml