FEAT(alertmanager): add Karma to Alertmanager
- Add Karma dashboard for alert aggregation - Enable alert visualization
This commit is contained in:
@@ -17,6 +17,10 @@ spec:
|
||||
- repoURL: https://github.com/Mayne0213/monitoring.git
|
||||
targetRevision: main
|
||||
ref: values
|
||||
- repoURL: https://github.com/Mayne0213/monitoring.git
|
||||
targetRevision: main
|
||||
path: alertmanager
|
||||
kustomize: {}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: alertmanager
|
||||
@@ -39,3 +43,69 @@ spec:
|
||||
labels:
|
||||
goldilocks.fairwinds.com/enabled: 'true'
|
||||
revisionHistoryLimit: 10
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: karma
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://wiremind.github.io/wiremind-helm-charts
|
||||
chart: karma
|
||||
targetRevision: 2.11.0
|
||||
helm:
|
||||
values: |
|
||||
fullnameOverride: karma
|
||||
|
||||
image:
|
||||
repository: ghcr.io/prymitive/karma
|
||||
tag: v0.122
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 32Mi
|
||||
limits:
|
||||
memory: 128Mi
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8080
|
||||
|
||||
env:
|
||||
- name: ALERTMANAGER_URI
|
||||
value: "http://alertmanager.alertmanager.svc.cluster.local:9093"
|
||||
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: alertmanager
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
allowEmpty: false
|
||||
syncOptions:
|
||||
- PrunePropagationPolicy=foreground
|
||||
- PruneLast=true
|
||||
retry:
|
||||
limit: 5
|
||||
backoff:
|
||||
duration: 5s
|
||||
factor: 2
|
||||
maxDuration: 3m
|
||||
revisionHistoryLimit: 10
|
||||
|
||||
24
alertmanager/ingress.yaml
Normal file
24
alertmanager/ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: karma-ingress
|
||||
namespace: alertmanager
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- karma0213.kro.kr
|
||||
secretName: karma-tls
|
||||
rules:
|
||||
- host: karma0213.kro.kr
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: karma
|
||||
port:
|
||||
number: 8080
|
||||
@@ -1,3 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
resources:
|
||||
- ingress.yaml
|
||||
|
||||
Reference in New Issue
Block a user