homelab/manifests/home-services/discord-bot.yaml

54 lines
1.4 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.nik4nao.com/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: 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