cleaner project structure
This commit is contained in:
parent
ebf31c52dd
commit
946c35d074
@ -11,7 +11,7 @@ metadata:
|
||||
argocd-image-updater.argoproj.io/write-back-method: git
|
||||
|
||||
spec:
|
||||
project: default
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
|
@ -4,7 +4,7 @@ metadata:
|
||||
name: restic-backup-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
|
@ -4,7 +4,7 @@ metadata:
|
||||
name: restic-prune-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
|
@ -4,7 +4,7 @@ metadata:
|
||||
name: restic-secrets-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
|
@ -4,7 +4,7 @@ metadata:
|
||||
name: homeassistant-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
project: apps
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: HEAD
|
||||
|
@ -7,7 +7,7 @@ metadata:
|
||||
argocd-image-updater.argoproj.io/image-list: ghcr.io/immich-app/immich-server # no version constraints, use newest
|
||||
argocd-image-updater.argoproj.io/write-back-method: declarative # write back to git
|
||||
spec:
|
||||
project: default
|
||||
project: apps
|
||||
sources:
|
||||
- chart: immich
|
||||
repoURL: https://immich-app.github.io/immich-charts
|
||||
|
@ -11,10 +11,10 @@ metadata:
|
||||
argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/journal-repo
|
||||
|
||||
spec:
|
||||
project: default
|
||||
project: apps
|
||||
source:
|
||||
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/journal-bot.git
|
||||
targetRevision: HEAD
|
||||
targetRevision: main
|
||||
path: deployment/
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
|
@ -5,11 +5,13 @@ namespace: argocd
|
||||
|
||||
|
||||
resources:
|
||||
- projects.yaml
|
||||
- nfs/
|
||||
- backup/
|
||||
- argocd-imageupdate/
|
||||
- whoami/
|
||||
- journal/
|
||||
- immich/
|
||||
- homeassistant/
|
||||
- ntfy/
|
||||
- backup/
|
||||
- rss/
|
||||
|
18
kluster-deployments/nfs/application.yaml
Normal file
18
kluster-deployments/nfs/application.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: nfs-provisioner-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
path: infrastructure/nfs/
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: nfs-provisioner
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
4
kluster-deployments/nfs/kustomization.yaml
Normal file
4
kluster-deployments/nfs/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- application.yaml
|
@ -5,7 +5,7 @@ metadata:
|
||||
namespace: argocd
|
||||
|
||||
spec:
|
||||
project: default
|
||||
project: apps
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
|
31
kluster-deployments/projects.yaml
Normal file
31
kluster-deployments/projects.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: infrastructure
|
||||
namespace: argocd
|
||||
# Finalizer that ensures that project is not deleted until it is not referenced by any application
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
# Project description
|
||||
description: Infrastructure applications
|
||||
|
||||
# Allow manifests to deploy from any Git repos
|
||||
sourceRepos:
|
||||
- '*'
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: apps
|
||||
namespace: argocd
|
||||
# Finalizer that ensures that project is not deleted until it is not referenced by any application
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
# Project description
|
||||
description: Infrastructure applications
|
||||
|
||||
# Allow manifests to deploy from any Git repos
|
||||
sourceRepos:
|
||||
- '*'
|
@ -5,7 +5,7 @@ metadata:
|
||||
namespace: argocd
|
||||
|
||||
spec:
|
||||
project: default
|
||||
project: apps
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: main
|
||||
|
@ -4,10 +4,10 @@ metadata:
|
||||
name: whoami-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
project: apps
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: HEAD
|
||||
targetRevision: main
|
||||
path: apps/whoami/overlays/main
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
|
Loading…
x
Reference in New Issue
Block a user