homelab/manifests/home-services/discord-bot.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

57 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: discord-bot
namespace: home-services
labels:
app: discord-bot
spec:
replicas: 1
selector:
matchLabels:
app: discord-bot
template:
metadata:
labels:
app: discord-bot
spec:
imagePullSecrets:
- name: gitea-registry-secret
containers:
- name: discord-bot
image: gitea.home.arpa/nik/discord-bot:latest
env:
- name: DISCORD_TOKEN
valueFrom:
secretKeyRef:
name: discord-bot-secret
key: DISCORD_TOKEN
- name: GUILD_ID
valueFrom:
secretKeyRef:
name: discord-bot-secret
key: GUILD_ID
- name: HA_GATEWAY_ADDR
value: "ha-gateway.home-services.svc.cluster.local:50051"
- name: AI_GATEWAY_ADDR
value: "ai-gateway.home-services.svc.cluster.local:50052"
- name: OTEL_ENDPOINT
value: "otel-collector-opentelemetry-collector.monitoring.svc.cluster.local:4317"
- name: TLS_DIR
value: /tls
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
volumeMounts:
- name: tls
mountPath: /tls
readOnly: true
volumes:
- name: tls
secret:
secretName: discord-bot-tls