REFACTOR(storage): storage repo structure
- Add application.yaml for ArgoCD app-of-apps - Add kustomization.yaml with storage components - Add renovate.json for automated updates - Update all component argocd.yaml repoURLs to storage repo Components: longhorn, minio, postgresql, postgresql-dev, pgweb, cnpg, velero
This commit is contained in:
33
application.yaml
Normal file
33
application.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: storage
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
|
targetRevision: main
|
||||||
|
path: .
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: argocd
|
||||||
|
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: 5
|
||||||
|
backoff:
|
||||||
|
duration: 5s
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 3m
|
||||||
|
|
||||||
|
revisionHistoryLimit: 10
|
||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/cnpg/helm-values.yaml
|
- $values/cnpg/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
16
kustomization.yaml
Normal file
16
kustomization.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- application.yaml
|
||||||
|
# Storage systems
|
||||||
|
- longhorn/argocd.yaml
|
||||||
|
- minio/argocd.yaml
|
||||||
|
# PostgreSQL databases
|
||||||
|
- postgresql/argocd/postgresql.yaml
|
||||||
|
- postgresql-dev/argocd.yaml
|
||||||
|
# Database tools
|
||||||
|
- pgweb/argocd.yaml
|
||||||
|
# Operators
|
||||||
|
- cnpg/argocd.yaml
|
||||||
|
- velero/argocd.yaml
|
||||||
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/longhorn/helm-values.yaml
|
- $values/longhorn/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: longhorn
|
path: longhorn
|
||||||
kustomize: {}
|
kustomize: {}
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/minio/helm-values.yaml
|
- $values/minio/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: minio
|
path: minio
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: pgweb
|
path: pgweb
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/postgresql-dev/helm-values.yaml
|
- $values/postgresql-dev/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/databases.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: postgresql-dev
|
path: postgresql-dev
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ spec:
|
|||||||
project: default
|
project: default
|
||||||
|
|
||||||
source:
|
source:
|
||||||
repoURL: https://github.com/K3S-HOME/databases.git
|
repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: postgresql
|
path: postgresql
|
||||||
|
|
||||||
|
|||||||
26
renovate.json
Normal file
26
renovate.json
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
],
|
||||||
|
"customManagers": [
|
||||||
|
{
|
||||||
|
"customType": "regex",
|
||||||
|
"managerFilePatterns": ["argocd\\.yaml$"],
|
||||||
|
"matchStrings": [
|
||||||
|
"repoURL:\\s*(?<registryUrl>ghcr\\.io/[^\\s]+)\\n\\s+chart:\\s*(?<depName>[^\\s]+)\\n\\s+targetRevision:\\s*(?<currentValue>[^\\s]+)"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "helm",
|
||||||
|
"registryUrlTemplate": "oci://{{registryUrl}}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"kubernetes": {
|
||||||
|
"fileMatch": ["\\.yaml$"]
|
||||||
|
},
|
||||||
|
"helmv3": {
|
||||||
|
"fileMatch": ["helm-values\\.yaml$"]
|
||||||
|
},
|
||||||
|
"argocd": {
|
||||||
|
"fileMatch": ["argocd\\.yaml$"]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -20,10 +20,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/velero/helm-values.yaml
|
- $values/velero/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
- repoURL: https://github.com/K3S-HOME/storage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: velero
|
path: velero
|
||||||
kustomize: {}
|
kustomize: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user