fix: update HA_GATEWAY_ADDR to use home-services namespace and add registry secret script

This commit is contained in:
Nik Afiq 2026-04-07 23:07:56 +09:00
parent 4b265d7668
commit 1b1026182d
2 changed files with 13 additions and 1 deletions

View File

@ -32,7 +32,7 @@ spec:
name: discord-bot-secret
key: GUILD_ID
- name: HA_GATEWAY_ADDR
value: "ha-gateway.default.svc.cluster.local:50051"
value: "ha-gateway.home-services.svc.cluster.local:50051"
- name: OTEL_ENDPOINT
value: "otel-collector-opentelemetry-collector.monitoring.svc.cluster.local:4317"
resources:

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Usage: bash manifests/home-services/registry-secret.sh
# Description: Regenerates the gitea-registry-secret from .env
set -euo pipefail
source "$(dirname "$0")/../../.env"
kubectl create secret docker-registry gitea-registry-secret \
--namespace=home-services \
--docker-server=gitea.nik4nao.com \
--docker-username=nik \
--docker-password="${REGISTRY_PASSWORD}" \
--dry-run=client -o yaml | kubectl apply -f -