cleaner project structure
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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/ | ||||||
|   | |||||||
							
								
								
									
										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 |   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 | ||||||
|   | |||||||
							
								
								
									
										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 |   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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user