mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-03 13:30:57 +07:00
Move git, ci and sso to platform layer
This commit is contained in:
parent
29ea97c509
commit
8f4088dadb
@ -30,7 +30,7 @@ A single `make` command will automatically:
|
||||
- Install ArgoCD
|
||||
- Kustomize creates the [root Argo application](./bootstrap/root-app) that will install other Argo applications
|
||||
|
||||
From now on, the root app will install the remaining layers (`./system`, `./apps`) and the `./bootstrap` layer will manage itself.
|
||||
From now on, the root app will install the remaining layers (`./system`, `./platform`, `./apps`) and the `./bootstrap` layer will manage itself.
|
||||
|
||||
Please visit the [Provisioning flow document](https://khuedoan.github.io/homelab/deployment/provisioning_flow.html) to learn more.
|
||||
|
||||
|
28
bootstrap/root-app/applicationsets/platform.yaml
Normal file
28
bootstrap/root-app/applicationsets/platform.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: platform
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://github.com/khuedoan/homelab.git
|
||||
revision: master
|
||||
directories:
|
||||
- path: platform/*
|
||||
template:
|
||||
metadata:
|
||||
name: '{{path.basename}}'
|
||||
spec:
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: '{{path.basename}}'
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/khuedoan/homelab.git
|
||||
path: '{{path}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
@ -5,6 +5,7 @@ resources:
|
||||
# - projects/system.yaml
|
||||
- applicationsets/bootstrap.yaml
|
||||
- applicationsets/system.yaml
|
||||
- applicationsets/platform.yaml
|
||||
- applicationsets/apps.yaml
|
||||
|
||||
namespace: argocd
|
||||
|
Loading…
Reference in New Issue
Block a user