feat: wire official-bots to external tournament server #401

Closed
lq64 wants to merge 2 commits from feat/tournament-bot-env-config into main
5 changed files with 59 additions and 0 deletions
+9
View File
@@ -441,6 +441,15 @@ spec:
key: INTERNAL_SECRET key: INTERNAL_SECRET
- name: ACCOUNT_SERVICE_URL - name: ACCOUNT_SERVICE_URL
value: http://nowchess-account:8083 value: http://nowchess-account:8083
- name: TOURNAMENT_SERVER_URL
value: "http://141.37.123.132:8086"
- name: TOURNAMENT_BOT_DIFFICULTY
value: "hard"
- name: TOURNAMENT_BOT_TOKEN
valueFrom:
secretKeyRef:
name: ncs-tournament-secret
key: TOURNAMENT_BOT_TOKEN
ports: ports:
- containerPort: 8088 - containerPort: 8088
protocol: TCP protocol: TCP
+2
View File
@@ -11,10 +11,12 @@ resources:
- nowchess/staging/ncs-jwt-keys.yaml - nowchess/staging/ncs-jwt-keys.yaml
- nowchess/staging/ncs-db-secrets.yaml - nowchess/staging/ncs-db-secrets.yaml
- nowchess/staging/ncs-internal-secret.yaml - nowchess/staging/ncs-internal-secret.yaml
- nowchess/staging/ncs-tournament-secret.yaml
- nowchess/eu-central-1-prod/ghcr-pull-secret.yaml - nowchess/eu-central-1-prod/ghcr-pull-secret.yaml
- nowchess/eu-central-1-prod/ncs-jwt-keys.yaml - nowchess/eu-central-1-prod/ncs-jwt-keys.yaml
- nowchess/eu-central-1-prod/ncs-db-secrets.yaml - nowchess/eu-central-1-prod/ncs-db-secrets.yaml
- nowchess/eu-central-1-prod/ncs-internal-secret.yaml - nowchess/eu-central-1-prod/ncs-internal-secret.yaml
- nowchess/eu-central-1-prod/ncs-tournament-secret.yaml
- nowchess/kargo/ghcr-image-secret.yaml - nowchess/kargo/ghcr-image-secret.yaml
- nowchess/kargo/github-image-secret.yaml - nowchess/kargo/github-image-secret.yaml
- nowchess/kargo/remotek6-certs.yaml - nowchess/kargo/remotek6-certs.yaml
@@ -0,0 +1,16 @@
# PLACEHOLDER — seal with eu-central-1 cluster key before use:
# kubectl -n nowchess create secret generic ncs-tournament-secret \
# --from-literal=TOURNAMENT_BOT_TOKEN=<token-from-nowchess-api> \
# --dry-run=client -o yaml | kubeseal --controller-namespace kube-system -o yaml > this-file.yaml
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: ncs-tournament-secret
namespace: nowchess
spec:
encryptedData:
REPLACE_KEY: REPLACE_WITH_SEALED_VALUE
template:
metadata:
name: ncs-tournament-secret
namespace: nowchess
@@ -0,0 +1,16 @@
# PLACEHOLDER — seal with htwg-1 cluster key before use:
# kubectl -n nowchess create secret generic ncs-tournament-secret \
# --from-literal=TOURNAMENT_BOT_TOKEN=<token-from-nowchess-api> \
# --dry-run=client -o yaml | kubeseal --controller-namespace kube-system -o yaml > this-file.yaml
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: ncs-tournament-secret
namespace: nowchess
spec:
encryptedData:
REPLACE_KEY: REPLACE_WITH_SEALED_VALUE
template:
metadata:
name: ncs-tournament-secret
namespace: nowchess
@@ -0,0 +1,16 @@
# PLACEHOLDER — seal with staging cluster key before use:
# kubectl -n nowchess create secret generic ncs-tournament-secret \
# --from-literal=TOURNAMENT_BOT_TOKEN=<token-from-nowchess-api> \
# --dry-run=client -o yaml | kubeseal --controller-namespace kube-system -o yaml > this-file.yaml
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: ncs-tournament-secret
namespace: nowchess
spec:
encryptedData:
REPLACE_KEY: REPLACE_WITH_SEALED_VALUE
template:
metadata:
name: ncs-tournament-secret
namespace: nowchess