Move databases into deploy
This commit is contained in:
parent
e600a38488
commit
1123299fcb
1 changed files with 54 additions and 4 deletions
|
@ -28,10 +28,10 @@ spec:
|
|||
namespace: home-server
|
||||
wave: 2
|
||||
|
||||
- name: database
|
||||
path: applications/40-database
|
||||
namespace: database
|
||||
wave: 3
|
||||
#- name: database
|
||||
# path: applications/40-database
|
||||
# namespace: database
|
||||
# wave: 3
|
||||
|
||||
- name: authentik
|
||||
path: applications/50-authentik
|
||||
|
@ -63,3 +63,53 @@ spec:
|
|||
- CreateNamespace=true
|
||||
- SyncWave={{wave | default "0"}}
|
||||
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: home-server-databases
|
||||
namespace: argocd
|
||||
spec:
|
||||
generators:
|
||||
- list:
|
||||
elements:
|
||||
- name: mariadb-operators
|
||||
path: applications/20-databases/mariadb-operators
|
||||
namespace: database
|
||||
wave: 1
|
||||
- name: postgresql
|
||||
path: applications/20-databases/postgresql
|
||||
namespace: database
|
||||
wave: 1
|
||||
- name: influxdb
|
||||
path: applications/20-databases/influxdb
|
||||
namespace: database
|
||||
wave: 1
|
||||
- name: redis
|
||||
path: applications/20-databases/redis
|
||||
namespace: database
|
||||
wave: 1
|
||||
- name: mariadb-database
|
||||
path: applications/20-databases/mariadb-database
|
||||
namespace: database
|
||||
wave: 2
|
||||
template:
|
||||
metadata:
|
||||
name: '{{name}}'
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: 'https://repobase.net/j/home-server.git'
|
||||
targetRevision: HEAD
|
||||
path: '{{path}}'
|
||||
destination:
|
||||
server: 'https://kubernetes.default.svc'
|
||||
namespace: '{{namespace | default "database"}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- SyncWave={{wave | default "0"}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue