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