implemented gitops scaffolding and migrated docker compose to new folder
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: infrastructure
|
||||
namespace: argocd
|
||||
spec:
|
||||
goTemplate: true
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.sorells.me/whentimeslows/home-services.git
|
||||
revision: main
|
||||
directories:
|
||||
- path: infrastructure/*
|
||||
- path: infrastructure/*/templates
|
||||
exclude: true
|
||||
template:
|
||||
metadata:
|
||||
name: 'infrastructure-{{.path.basename}}'
|
||||
labels:
|
||||
app.kubernetes.io/part-of: home-services
|
||||
home-services.sorells.me/layer: infrastructure
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.sorells.me/whentimeslows/home-services.git
|
||||
targetRevision: main
|
||||
path: '{{.path.path}}'
|
||||
helm:
|
||||
releaseName: '{{.path.basename}}'
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: '{{.path.basename}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -0,0 +1,38 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: services
|
||||
namespace: argocd
|
||||
spec:
|
||||
goTemplate: true
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.sorells.me/whentimeslows/home-services.git
|
||||
revision: main
|
||||
directories:
|
||||
- path: services/*
|
||||
- path: services/*/templates
|
||||
exclude: true
|
||||
template:
|
||||
metadata:
|
||||
name: 'service-{{.path.basename}}'
|
||||
labels:
|
||||
app.kubernetes.io/part-of: home-services
|
||||
home-services.sorells.me/layer: service
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.sorells.me/whentimeslows/home-services.git
|
||||
targetRevision: main
|
||||
path: '{{.path.path}}'
|
||||
helm:
|
||||
releaseName: '{{.path.basename}}'
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: '{{.path.basename}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in New Issue
Block a user