first claude draft
This commit is contained in:
14
k8s/base/alerts/configmap.yaml
Normal file
14
k8s/base/alerts/configmap.yaml
Normal 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"
|
||||
33
k8s/base/alerts/deployment.yaml
Normal file
33
k8s/base/alerts/deployment.yaml
Normal 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"
|
||||
10
k8s/base/alerts/kustomization.yaml
Normal file
10
k8s/base/alerts/kustomization.yaml
Normal 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
|
||||
Reference in New Issue
Block a user