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 <noreply@anthropic.com>
This commit is contained in:
@@ -441,6 +441,10 @@ spec:
|
|||||||
key: INTERNAL_SECRET
|
key: INTERNAL_SECRET
|
||||||
- name: ACCOUNT_SERVICE_URL
|
- name: ACCOUNT_SERVICE_URL
|
||||||
value: http://nowchess-account-active:8083
|
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
|
- name: MP_JWT_VERIFY_PUBLICKEY_LOCATION
|
||||||
value: /secrets/jwt/public.pem
|
value: /secrets/jwt/public.pem
|
||||||
- name: MP_JWT_VERIFY_ISSUER
|
- name: MP_JWT_VERIFY_ISSUER
|
||||||
@@ -887,6 +891,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: ncs-db-secrets
|
name: ncs-db-secrets
|
||||||
key: ACCOUNT_DB_URL
|
key: ACCOUNT_DB_URL
|
||||||
|
- name: TOURNAMENT_SELF_URL
|
||||||
|
value: ""
|
||||||
- name: MP_JWT_VERIFY_PUBLICKEY_LOCATION
|
- name: MP_JWT_VERIFY_PUBLICKEY_LOCATION
|
||||||
value: /secrets/jwt/public.pem
|
value: /secrets/jwt/public.pem
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@@ -41,7 +41,9 @@ patches:
|
|||||||
containers:
|
containers:
|
||||||
- name: nowchess-official-bots
|
- name: nowchess-official-bots
|
||||||
env:
|
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
|
value: http://141.37.123.132:8086
|
||||||
- name: TOURNAMENT_BOT_TOKEN
|
- name: TOURNAMENT_BOT_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -51,6 +53,22 @@ patches:
|
|||||||
target:
|
target:
|
||||||
kind: Rollout
|
kind: Rollout
|
||||||
name: nowchess-official-bots
|
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:
|
images:
|
||||||
- name: ghcr.io/now-chess/now-chess-systems/account
|
- name: ghcr.io/now-chess/now-chess-systems/account
|
||||||
newTag: 0.25.0-x86_v2
|
newTag: 0.25.0-x86_v2
|
||||||
|
|||||||
Reference in New Issue
Block a user