homelab/manifests/home-services/alert-bridge.yaml
Nik Afiq fd13b8aedb
Some checks failed
validate / lint (push) Has been cancelled
feat: move Gitea traffic from gitea.nik4nao.com to gitea.home.arpa
The public domain is unreachable while moving, and the cluster had no
Traefik route to Gitea at all (public or internal), leaving every Argo
CD Application stuck in Unknown sync. Add a gitea.home.arpa
Certificate/IngressRoute, repoint Argo CD's repoURL, Gitea's own
DOMAIN/ROOT_URL/SSH_DOMAIN, the container registry references, the
Gitea Actions runner, and the watch-party clone URL at the internal
hostname.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-07 23:06:02 +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.home.arpa/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