From b82a0919e9e781e599275c3d5941d2235226e842 Mon Sep 17 00:00:00 2001 From: Janis Eccarius Date: Sun, 21 Jun 2026 21:23:58 +0200 Subject: [PATCH] feat(nowchess): wire TOURNAMENT_SERVICE_URL and TOURNAMENT_SELF_URL - Official-bots now targets local tournament service (TOURNAMENT_SERVICE_URL) instead of calling remote cluster directly - TOURNAMENT_SELF_URL tells each cluster's tournament and official-bots services their own public URL for cross-cluster replication - htwg-1-prod: remove TOURNAMENT_SERVER_URL, add both new vars with correct values (tournament active service + node IP for self-announcement) Co-Authored-By: Claude Sonnet 4.6 --- nowchess/base/nowchess-rollouts.yaml | 6 ++++++ nowchess/htwg-1-prod/kustomization.yaml | 20 +++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/nowchess/base/nowchess-rollouts.yaml b/nowchess/base/nowchess-rollouts.yaml index 65a4692..b837a85 100755 --- a/nowchess/base/nowchess-rollouts.yaml +++ b/nowchess/base/nowchess-rollouts.yaml @@ -441,6 +441,10 @@ spec: key: INTERNAL_SECRET - name: ACCOUNT_SERVICE_URL value: http://nowchess-account-active:8083 + - name: TOURNAMENT_SERVICE_URL + value: http://nowchess-tournament-active:8086 + - name: TOURNAMENT_SELF_URL + value: "" - name: MP_JWT_VERIFY_PUBLICKEY_LOCATION value: /secrets/jwt/public.pem - name: MP_JWT_VERIFY_ISSUER @@ -887,6 +891,8 @@ spec: secretKeyRef: name: ncs-db-secrets key: ACCOUNT_DB_URL + - name: TOURNAMENT_SELF_URL + value: "" - name: MP_JWT_VERIFY_PUBLICKEY_LOCATION value: /secrets/jwt/public.pem volumeMounts: diff --git a/nowchess/htwg-1-prod/kustomization.yaml b/nowchess/htwg-1-prod/kustomization.yaml index abae92b..94d3fce 100755 --- a/nowchess/htwg-1-prod/kustomization.yaml +++ b/nowchess/htwg-1-prod/kustomization.yaml @@ -41,7 +41,9 @@ patches: containers: - name: nowchess-official-bots env: - - name: TOURNAMENT_SERVER_URL + - name: TOURNAMENT_SERVICE_URL + value: http://nowchess-tournament-active:8086 + - name: TOURNAMENT_SELF_URL value: http://141.37.123.132:8086 - name: TOURNAMENT_BOT_TOKEN valueFrom: @@ -51,6 +53,22 @@ patches: target: kind: Rollout name: nowchess-official-bots +- patch: |- + apiVersion: argoproj.io/v1alpha1 + kind: Rollout + metadata: + name: nowchess-tournament + spec: + template: + spec: + containers: + - name: nowchess-tournament + env: + - name: TOURNAMENT_SELF_URL + value: http://141.37.123.132:8086 + target: + kind: Rollout + name: nowchess-tournament images: - name: ghcr.io/now-chess/now-chess-systems/account newTag: 0.25.0-x86_v2