Move git, ci and sso to platform layer

This commit is contained in:
Khue Doan 2021-09-03 12:36:52 +07:00
parent 29ea97c509
commit 8f4088dadb
9 changed files with 30 additions and 1 deletions

View File

@ -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.

View 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

View File

@ -5,6 +5,7 @@ resources:
# - projects/system.yaml
- applicationsets/bootstrap.yaml
- applicationsets/system.yaml
- applicationsets/platform.yaml
- applicationsets/apps.yaml
namespace: argocd