INIT(repo): monitoring stack setup

This commit is contained in:
2025-12-17 15:06:58 +09:00
commit baee94b69d
23 changed files with 866 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: promtail
namespace: argocd
spec:
project: default
sources:
- repoURL: https://grafana.github.io/helm-charts
chart: promtail
targetRevision: 6.16.6
helm:
valueFiles:
- $values/promtail/helm-values/promtail.yaml
- repoURL: https://gitea0213.kro.kr/bluemayne/infrastructure.git
targetRevision: HEAD
ref: values
destination:
server: https://kubernetes.default.svc
namespace: logging
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,49 @@
# Promtail Helm Values
# Chart: https://grafana.github.io/helm-charts
# Log collector agent (DaemonSet on all nodes)
# Loki endpoint
config:
clients:
- url: http://loki.logging.svc.cluster.local:3100/loki/api/v1/push
# Default scrape config (use defaults)
defaultVolumes:
- name: run
hostPath:
path: /run/promtail
- name: containers
hostPath:
path: /var/lib/docker/containers
- name: pods
hostPath:
path: /var/log/pods
defaultVolumeMounts:
- name: run
mountPath: /run/promtail
- name: containers
mountPath: /var/lib/docker/containers
readOnly: true
- name: pods
mountPath: /var/log/pods
readOnly: true
# Resources
resources:
requests:
cpu: 50m
memory: 64Mi
# Tolerations to run on all nodes including master
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
# ServiceMonitor disabled
serviceMonitor:
enabled: false

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
# - argocd/promtail.yaml