REFACTOR(repo): restructure monitoring folder
- and add namespace resou... - Remove argocd/, helm-values/, ingress/ subdirectories - Move files to parent directory (argocd.yaml, helm-values.yaml, ingress.yaml) - Update helm valueFiles paths in ArgoCD Applications - Add namespace.yaml to all applications with Goldilocks labels - Update destination namespaces to match folder names - Update kustomization.yaml files to reference new structure
This commit is contained in:
@@ -15,7 +15,7 @@ spec:
|
||||
targetRevision: 1.29.0
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/alertmanager/helm-values/alertmanager.yaml
|
||||
- $values/alertmanager/helm-values.yaml
|
||||
# Values file from Git repository
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: main
|
||||
@@ -23,7 +23,7 @@ spec:
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
namespace: alertmanager
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
@@ -2,5 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/alertmanager.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
|
||||
6
alertmanager/namespace.yaml
Normal file
6
alertmanager/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: alertmanager
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
targetRevision: 8.0.2
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/goldilocks/helm-values/goldilocks.yaml
|
||||
- $values/goldilocks/helm-values.yaml
|
||||
# Values file from Git repository
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: main
|
||||
@@ -3,7 +3,7 @@ kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd/goldilocks.yaml
|
||||
# - argocd.yaml
|
||||
|
||||
# Goldilocks Dashboard Ingress
|
||||
- ingress/goldilocks-dashboard-ingress.yaml
|
||||
- namespace.yaml
|
||||
- ingress.yaml
|
||||
|
||||
6
goldilocks/namespace.yaml
Normal file
6
goldilocks/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: goldilocks
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
targetRevision: 10.3.0
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/grafana/helm-values/grafana.yaml
|
||||
- $values/grafana/helm-values.yaml
|
||||
# Values file from Git repository
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: main
|
||||
@@ -27,7 +27,7 @@ spec:
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
namespace: grafana
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
@@ -2,7 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/grafana.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
- vault/grafana-admin-password.yaml
|
||||
- ingress.yaml
|
||||
|
||||
6
grafana/namespace.yaml
Normal file
6
grafana/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: grafana
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
targetRevision: 5.25.1
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/kube-state-metrics/helm-values/kube-state-metrics.yaml
|
||||
- $values/kube-state-metrics/helm-values.yaml
|
||||
# Values file from Git repository
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: main
|
||||
@@ -23,7 +23,7 @@ spec:
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
namespace: kube-state-metrics
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
@@ -2,5 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/kube-state-metrics.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
|
||||
6
kube-state-metrics/namespace.yaml
Normal file
6
kube-state-metrics/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: kube-state-metrics
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -11,13 +11,13 @@ spec:
|
||||
targetRevision: 6.24.0
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/loki/helm-values/loki.yaml
|
||||
- $values/loki/helm-values.yaml
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: HEAD
|
||||
ref: values
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: logging
|
||||
namespace: loki
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -2,5 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/loki.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
|
||||
6
loki/namespace.yaml
Normal file
6
loki/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: loki
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
targetRevision: 4.39.0
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/node-exporter/helm-values/node-exporter.yaml
|
||||
- $values/node-exporter/helm-values.yaml
|
||||
# Values file from Git repository
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: main
|
||||
@@ -23,7 +23,7 @@ spec:
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
namespace: node-exporter
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
@@ -2,5 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/node-exporter.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
|
||||
6
node-exporter/namespace.yaml
Normal file
6
node-exporter/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: node-exporter
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
targetRevision: 80.0.0
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/prometheus/helm-values/kube-prometheus-stack.yaml
|
||||
- $values/prometheus/helm-values.yaml
|
||||
# Values file from Git repository
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: main
|
||||
@@ -27,7 +27,7 @@ spec:
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
namespace: prometheus
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
@@ -2,6 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/prometheus.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
- vault/postgresql-password.yaml
|
||||
|
||||
6
prometheus/namespace.yaml
Normal file
6
prometheus/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: prometheus
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
@@ -11,13 +11,13 @@ spec:
|
||||
targetRevision: 6.16.6
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/promtail/helm-values/promtail.yaml
|
||||
- $values/promtail/helm-values.yaml
|
||||
- repoURL: https://gitea0213.kro.kr/bluemayne/monitoring.git
|
||||
targetRevision: HEAD
|
||||
ref: values
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: logging
|
||||
namespace: promtail
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@@ -2,5 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
|
||||
# - argocd/promtail.yaml
|
||||
# ArgoCD Application 리소스는 monitoring/kustomization.yaml에서 관리
|
||||
# - argocd.yaml
|
||||
|
||||
- namespace.yaml
|
||||
|
||||
6
promtail/namespace.yaml
Normal file
6
promtail/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: promtail
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: "true"
|
||||
Reference in New Issue
Block a user