REFACTOR(repo): platform repo structure
- Add application.yaml for ArgoCD app-of-apps - Add kustomization.yaml with platform components - Add renovate.json for automated updates - Update cert-manager/argocd.yaml repoURL to platform repo - Update traefik/argocd.yaml repoURL to platform repo
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: platform
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/K3S-HOME/platform.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,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/cert-manager/helm-values.yaml
|
- $values/cert-manager/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
- repoURL: https://github.com/K3S-HOME/platform.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
- repoURL: https://github.com/K3S-HOME/platform.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: cert-manager
|
path: cert-manager
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
11
kustomization.yaml
Normal file
11
kustomization.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
# App of Apps Application
|
||||||
|
- application.yaml
|
||||||
|
- cert-manager/argocd.yaml
|
||||||
|
- traefik/argocd.yaml
|
||||||
|
|
||||||
|
# ArgoCD configuration (no Application, just configuration)
|
||||||
|
- argocd
|
||||||
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$"]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
repoURL: https://github.com/K3S-HOME/platform.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: traefik
|
path: traefik
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
Reference in New Issue
Block a user