#15 single repo for all kusts. Add databases.
This commit is contained in:
parent
fd1505a934
commit
fbe09d7673
6 changed files with 34 additions and 53 deletions
|
@ -1,6 +1,8 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- kusts/gitrepo.yaml
|
||||
- kusts/operators.yaml
|
||||
- kusts/dns-ssl.yaml
|
||||
- kusts/home-server.yaml
|
||||
- kusts/databases.yaml
|
||||
|
|
13
deployments/kusts/databases.yaml
Normal file
13
deployments/kusts/databases.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: databases
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
path: ./deployments/databases
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: home-server-kusts
|
|
@ -1,18 +1,3 @@
|
|||
## 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: dns-ssl
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: main
|
||||
url: ssh://git@repobase.net/j/home-server.git
|
||||
secretRef:
|
||||
name: flux-ssh
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
@ -25,5 +10,4 @@ spec:
|
|||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: dns-ssl
|
||||
|
||||
name: home-server-kusts
|
||||
|
|
13
deployments/kusts/gitrepo.yaml
Normal file
13
deployments/kusts/gitrepo.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: home-server-kusts
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: main
|
||||
url: ssh://git@repobase.net/j/home-server.git
|
||||
secretRef:
|
||||
name: flux-ssh
|
|
@ -1,18 +1,3 @@
|
|||
## 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: flux-ssh
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
@ -25,4 +10,4 @@ spec:
|
|||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: home-server-apps
|
||||
name: home-server-kusts
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
## 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: flux-ssh
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
@ -25,5 +10,4 @@ spec:
|
|||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: operators
|
||||
|
||||
name: home-server-kusts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue