feat(piloto): SPA Angular (frontend-spa) consumindo o BFF; rota / -> frontend-spa
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 }]
|
||||
Reference in New Issue
Block a user