homelab/manifests/home-services/alert-bridge.yaml
Nik Afiq 85cc8494fa
Some checks failed
validate / lint (push) Failing after 1s
feat: add alert bridge service and related configurations
2026-08-01 22:51:59 +09:00

81 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: alert-bridge
namespace: home-services
labels:
app: alert-bridge
spec:
replicas: 1
selector:
matchLabels:
app: alert-bridge
template:
metadata:
labels:
app: alert-bridge
spec:
imagePullSecrets:
- name: gitea-registry-secret
containers:
- name: alert-bridge
image: gitea.nik4nao.com/nik/alert-bridge:latest
ports:
- containerPort: 8080
name: http
env:
- name: HTTP_PORT
value: "8080"
- name: API_KEY
valueFrom:
secretKeyRef:
name: alert-bridge-secret
key: API_KEY
- name: DISCORD_WEBHOOK_URL
valueFrom:
secretKeyRef:
name: alert-bridge-secret
key: DISCORD_WEBHOOK_URL
- name: MENTION_USER_ID
valueFrom:
secretKeyRef:
name: alert-bridge-secret
key: MENTION_USER_ID
- name: OTEL_ENDPOINT
value: "otel-collector-opentelemetry-collector.monitoring.svc.cluster.local:4317"
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
---
apiVersion: v1
kind: Service
metadata:
name: alert-bridge
namespace: home-services
labels:
app: alert-bridge
spec:
selector:
app: alert-bridge
ports:
- name: http
port: 8080
targetPort: 8080
type: ClusterIP