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 argocd-image-updater.argoproj.io/write-back-method: git
spec: spec:
project: default project: infrastructure
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main targetRevision: main

View File

@ -4,7 +4,7 @@ metadata:
name: restic-backup-application name: restic-backup-application
namespace: argocd namespace: argocd
spec: spec:
project: default project: infrastructure
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main targetRevision: main

View File

@ -4,7 +4,7 @@ metadata:
name: restic-prune-application name: restic-prune-application
namespace: argocd namespace: argocd
spec: spec:
project: default project: infrastructure
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main targetRevision: main

View File

@ -4,7 +4,7 @@ metadata:
name: restic-secrets-application name: restic-secrets-application
namespace: argocd namespace: argocd
spec: spec:
project: default project: infrastructure
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main targetRevision: main

View File

@ -4,7 +4,7 @@ metadata:
name: homeassistant-application name: homeassistant-application
namespace: argocd namespace: argocd
spec: spec:
project: default project: apps
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: HEAD 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/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 argocd-image-updater.argoproj.io/write-back-method: declarative # write back to git
spec: spec:
project: default project: apps
sources: sources:
- chart: immich - chart: immich
repoURL: https://immich-app.github.io/immich-charts 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 argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/journal-repo
spec: spec:
project: default project: apps
source: source:
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/journal-bot.git repoURL: ssh://git@git.kluster.moll.re:2222/remoll/journal-bot.git
targetRevision: HEAD targetRevision: main
path: deployment/ path: deployment/
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc

View File

@ -5,11 +5,13 @@ namespace: argocd
resources: resources:
- projects.yaml
- nfs/
- backup/
- argocd-imageupdate/ - argocd-imageupdate/
- whoami/ - whoami/
- journal/ - journal/
- immich/ - immich/
- homeassistant/ - homeassistant/
- ntfy/ - ntfy/
- backup/
- rss/ - 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 namespace: argocd
spec: spec:
project: default project: apps
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main 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 namespace: argocd
spec: spec:
project: default project: apps
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: main targetRevision: main

View File

@ -4,10 +4,10 @@ metadata:
name: whoami-application name: whoami-application
namespace: argocd namespace: argocd
spec: spec:
project: default project: apps
source: source:
repoURL: https://github.com/moll-re/k3s-infra.git repoURL: https://github.com/moll-re/k3s-infra.git
targetRevision: HEAD targetRevision: main
path: apps/whoami/overlays/main path: apps/whoami/overlays/main
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc