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:
|
||||
valueFiles:
|
||||
- $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
|
||||
ref: values
|
||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
||||
- repoURL: https://github.com/K3S-HOME/platform.git
|
||||
targetRevision: main
|
||||
path: cert-manager
|
||||
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:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
||||
repoURL: https://github.com/K3S-HOME/platform.git
|
||||
targetRevision: main
|
||||
path: traefik
|
||||
destination:
|
||||
|
||||
Reference in New Issue
Block a user