x
This commit is contained in:
parent
e7168a3039
commit
80344a23ec
17 changed files with 70 additions and 122 deletions
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- authentik.yaml
|
|
|
@ -3,5 +3,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- authentik.yaml
|
||||||
- bind.yaml
|
- bind.yaml
|
||||||
|
- certmanager.yaml
|
||||||
- externaldns.yaml
|
- externaldns.yaml
|
||||||
|
- nextcloud.yaml
|
|
@ -1,100 +1,6 @@
|
||||||
---
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
resources:
|
||||||
name: namespace
|
- kusts/operators.yaml
|
||||||
namespace: flux-system
|
- kusts/home-server.yaml
|
||||||
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
|
|
||||||
|
|
||||||
|
|
30
deployments/kusts/home-server.yaml
Normal file
30
deployments/kusts/home-server.yaml
Normal 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
|
||||||
|
|
30
deployments/kusts/operators.yaml
Normal file
30
deployments/kusts/operators.yaml
Normal 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
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- mariadb.yaml
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- nextcloud.yaml
|
|
|
@ -3,4 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- mariadb.yaml
|
||||||
- replicator.yaml
|
- replicator.yaml
|
||||||
|
- namespace.yaml
|
|
@ -54,3 +54,4 @@ spec:
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- name: mariadb-operator-crds
|
- name: mariadb-operator-crds
|
||||||
namespace: mariadb-system
|
namespace: mariadb-system
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- certmanager.yaml
|
|
Loading…
Add table
Add a link
Reference in a new issue