first claude draft

This commit is contained in:
buenosairesam
2025-12-29 14:40:06 -03:00
commit 116d4032e2
69 changed files with 5020 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: alerts-config
data:
REDIS_URL: "redis://redis:6379"
TIMESCALE_HOST: "timescaledb"
TIMESCALE_PORT: "5432"
TIMESCALE_USER: "monitor"
TIMESCALE_DB: "monitor"
SERVICE_NAME: "alerts"
EVENTS_BACKEND: "redis_pubsub"
LOG_LEVEL: "INFO"
LOG_FORMAT: "json"

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: alerts
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: alerts
template:
metadata:
labels:
app.kubernetes.io/name: alerts
spec:
containers:
- name: alerts
image: sysmonstm/alerts:latest
envFrom:
- configMapRef:
name: alerts-config
env:
- name: TIMESCALE_PASSWORD
valueFrom:
secretKeyRef:
name: timescaledb-secret
key: password
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"

View File

@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: alerts
app.kubernetes.io/component: backend
resources:
- deployment.yaml
- configmap.yaml