From 018ae668aff4e5e0a019653f1ca5a31341858b04 Mon Sep 17 00:00:00 2001 From: ATM Platform Date: Wed, 17 Jun 2026 00:00:44 +0000 Subject: [PATCH] feat(piloto): SPA Angular (frontend-spa) consumindo o BFF; rota / -> frontend-spa --- tenants/piloto/30-apps-stubs.yaml | 2 +- tenants/piloto/95-frontend-spa.yaml | 43 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 tenants/piloto/95-frontend-spa.yaml diff --git a/tenants/piloto/30-apps-stubs.yaml b/tenants/piloto/30-apps-stubs.yaml index 0a1f2e0..c5af430 100644 --- a/tenants/piloto/30-apps-stubs.yaml +++ b/tenants/piloto/30-apps-stubs.yaml @@ -146,7 +146,7 @@ spec: - { path: /api/cadastro, pathType: Prefix, backend: { service: { name: servico-cadastro, port: { number: 80 } } } } - { path: /bff, pathType: Prefix, backend: { service: { name: servico-bff, port: { number: 80 } } } } - { path: /api, pathType: Prefix, backend: { service: { name: backend, port: { number: 80 } } } } - - { path: /, pathType: Prefix, backend: { service: { name: frontend, port: { number: 80 } } } } + - { path: /, pathType: Prefix, backend: { service: { name: frontend-spa, port: { number: 80 } } } } - host: auth-piloto.athleticmap.influxdigital.com.br http: paths: diff --git a/tenants/piloto/95-frontend-spa.yaml b/tenants/piloto/95-frontend-spa.yaml new file mode 100644 index 0000000..00ff0a5 --- /dev/null +++ b/tenants/piloto/95-frontend-spa.yaml @@ -0,0 +1,43 @@ +# SPA Angular (shell OIDC + admin de catalogos + cadastro de Atleta) consumindo +# o BFF. Substitui o stub estatico nginx/configMap. Roteado em / no ingress. +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend-spa + namespace: piloto-prod + labels: + app: frontend-spa + athleticmap.io/contexto: frontend +spec: + replicas: 1 + selector: { matchLabels: { app: frontend-spa } } + template: + metadata: + labels: + app: frontend-spa + athleticmap.io/contexto: frontend + spec: + containers: + - name: frontend-spa + image: docker.io/library/frontend-spa:1.0 + imagePullPolicy: Never + ports: [{ containerPort: 80 }] + resources: + requests: { cpu: 50m, memory: 64Mi } + limits: { cpu: 200m, memory: 128Mi } + readinessProbe: + httpGet: { path: /, port: 80 } + initialDelaySeconds: 5 + periodSeconds: 10 +--- +apiVersion: v1 +kind: Service +metadata: + name: frontend-spa + namespace: piloto-prod + labels: + app: frontend-spa +spec: + selector: { app: frontend-spa } + ports: [{ name: http, port: 80, targetPort: 80 }]