REFACTOR(repo): observability repo structure
- Add application.yaml for ArgoCD app-of-apps - Add kustomization.yaml with observability components - Add renovate.json for automated updates - Update all component argocd.yaml repoURLs to observability repo Components: prometheus, alertmanager, grafana, loki, promtail, node-exporter, kube-state-metrics, goldilocks, uptime-kuma, vpa
This commit is contained in:
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/alertmanager/helm-values.yaml
|
- $values/alertmanager/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: alertmanager
|
path: alertmanager
|
||||||
kustomize: {}
|
kustomize: {}
|
||||||
|
|||||||
33
application.yaml
Normal file
33
application.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: observability
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/K3S-HOME/observability.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/goldilocks/helm-values.yaml
|
- $values/goldilocks/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: goldilocks
|
path: goldilocks
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/grafana/helm-values.yaml
|
- $values/grafana/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: grafana
|
path: grafana
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/kube-state-metrics/helm-values.yaml
|
- $values/kube-state-metrics/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
15
kustomization.yaml
Normal file
15
kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- application.yaml
|
||||||
|
- prometheus/argocd.yaml
|
||||||
|
- alertmanager/argocd.yaml
|
||||||
|
- grafana/argocd.yaml
|
||||||
|
- loki/argocd.yaml
|
||||||
|
- promtail/argocd.yaml
|
||||||
|
- node-exporter/argocd.yaml
|
||||||
|
- kube-state-metrics/argocd.yaml
|
||||||
|
- goldilocks/argocd.yaml
|
||||||
|
- uptime-kuma/argocd.yaml
|
||||||
|
- vpa/argocd.yaml
|
||||||
@@ -12,8 +12,8 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/loki/helm-values.yaml
|
- $values/loki/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: HEAD
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/node-exporter/helm-values.yaml
|
- $values/node-exporter/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/prometheus/helm-values.yaml
|
- $values/prometheus/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: prometheus
|
path: prometheus
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/promtail/helm-values.yaml
|
- $values/promtail/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: HEAD
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
|||||||
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$"]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,10 +14,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/uptime-kuma/helm-values.yaml
|
- $values/uptime-kuma/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://github.com/K3S-HOME/monitoring.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: uptime-kuma
|
path: uptime-kuma
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/vpa/helm-values.yaml
|
- $values/vpa/helm-values.yaml
|
||||||
- repoURL: https://github.com/K3S-HOME/cluster-infrastructure.git
|
- repoURL: https://github.com/K3S-HOME/observability.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
Reference in New Issue
Block a user