feat(piloto): servico-campeonato (2a onda) + rota /api/campeonato + cota+

This commit is contained in:
ATM Platform
2026-06-17 12:49:05 +00:00
parent 59cb3b8124
commit 22498c1698
3 changed files with 61 additions and 2 deletions
@@ -19,8 +19,8 @@ spec:
hard:
requests.cpu: "3"
requests.memory: 4Gi
limits.cpu: "8"
limits.memory: 10Gi
limits.cpu: "12"
limits.memory: 12Gi
pods: "20"
persistentvolumeclaims: "4"
---
+1
View File
@@ -58,6 +58,7 @@ spec:
- { path: /bff, pathType: Prefix, backend: { service: { name: servico-bff, port: { number: 80 } } } }
- { path: /api/organizacao, pathType: Prefix, backend: { service: { name: servico-organizacao, port: { number: 80 } } } }
- { path: /api/planejamento, pathType: Prefix, backend: { service: { name: servico-planejamento, port: { number: 80 } } } }
- { path: /api/campeonato, pathType: Prefix, backend: { service: { name: servico-campeonato, port: { number: 80 } } } }
- { path: /api, pathType: Prefix, backend: { service: { name: backend, port: { number: 80 } } } }
- { path: /, pathType: Prefix, backend: { service: { name: frontend-spa, port: { number: 80 } } } }
- host: auth-piloto.athleticmap.influxdigital.com.br
+58
View File
@@ -0,0 +1,58 @@
# Bounded context "campeonato" (2a onda): Campeonato (estrutura) + Jogo (sumula).
# Schema proprio "campeonato" (Flyway). Roteado em /api/campeonato no ingress.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: servico-campeonato
namespace: piloto-prod
labels:
app: servico-campeonato
athleticmap.io/contexto: campeonato
spec:
replicas: 1
selector: { matchLabels: { app: servico-campeonato } }
template:
metadata:
labels:
app: servico-campeonato
athleticmap.io/contexto: campeonato
spec:
containers:
- name: servico-campeonato
image: docker.io/library/servico-campeonato:1.0
imagePullPolicy: Never
ports: [{ containerPort: 8083 }]
env:
- { name: SPRING_DATASOURCE_URL, value: "jdbc:postgresql://postgres:5432/athleticmap" }
- { name: SPRING_DATASOURCE_USERNAME, value: "atm" }
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef: { name: db-credentials, key: password }
- { name: ATM_JWK_SET_URI, value: "http://keycloak:8080/realms/athleticmap/protocol/openid-connect/certs" }
- { name: ATM_ISSUER, value: "https://auth-piloto.athleticmap.influxdigital.com.br/realms/athleticmap" }
- { name: ATM_TENANT, value: "piloto" }
resources:
requests: { cpu: 150m, memory: 320Mi }
limits: { cpu: "1", memory: 768Mi }
readinessProbe:
httpGet: { path: /api/campeonato/health, port: 8083 }
initialDelaySeconds: 25
periodSeconds: 10
failureThreshold: 30
livenessProbe:
httpGet: { path: /actuator/health/liveness, port: 8083 }
initialDelaySeconds: 60
periodSeconds: 20
failureThreshold: 6
---
apiVersion: v1
kind: Service
metadata:
name: servico-campeonato
namespace: piloto-prod
labels:
app: servico-campeonato
spec:
selector: { app: servico-campeonato }
ports: [{ name: http, port: 80, targetPort: 8083 }]