cleaner project structure

This commit is contained in:
Remy Moll 2023-11-27 21:20:05 +01:00
parent ebf31c52dd
commit 946c35d074
14 changed files with 68 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,11 +5,13 @@ namespace: argocd
resources:
- projects.yaml
- nfs/
- backup/
- argocd-imageupdate/
- whoami/
- journal/
- immich/
- homeassistant/
- ntfy/
- backup/
- rss/

View 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

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- application.yaml

View File

@ -5,7 +5,7 @@ metadata:
namespace: argocd
spec:
project: default
project: apps
source:
repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main

View 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:
- '*'

View File

@ -5,7 +5,7 @@ metadata:
namespace: argocd
spec:
project: default
project: apps
source:
repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main

View File

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