dbf9a551a7
/api/bots/official/join-tournament returned 404 because no ingress rule matched the prefix; requests fell through to the /api catch-all and hit nowchess-core (8080), which has no such endpoint. Add /api/bots Prefix rule -> nowchess-official-bots-active:8088 in all three environments (staging, eu-central-1-prod, htwg-1-prod). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Reviewed-on: #403
84 lines
2.4 KiB
YAML
Executable File
84 lines
2.4 KiB
YAML
Executable File
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: nowchess-ingress
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: nowchess.janis-eccarius.de
|
|
http:
|
|
paths:
|
|
- path: /api/board/game/[A-Za-z0-9]{8}/ws
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: nowchess-ws-active
|
|
port:
|
|
number: 8084
|
|
- path: /api/user/ws
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: nowchess-ws-active
|
|
port:
|
|
number: 8084
|
|
- path: /api/account
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-account-active
|
|
port:
|
|
number: 8083
|
|
- path: /api/challenge
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-account-active
|
|
port:
|
|
number: 8083
|
|
- path: /api/store
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-store-active
|
|
port:
|
|
number: 8085
|
|
- path: /api/tournament
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-tournament-active
|
|
port:
|
|
number: 8088
|
|
- path: /api/bots
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-official-bots-active
|
|
port:
|
|
number: 8088
|
|
- path: /api
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-core-active
|
|
port:
|
|
number: 8080
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nowchess-frontend-active
|
|
port:
|
|
number: 80
|
|
tls:
|
|
- hosts:
|
|
- nowchess.janis-eccarius.de
|
|
secretName: nowchess-ingress-cert
|