documents/k8s/hml/ingress.yaml
Breno Pires 9165f1e9ab feat: microservico documents — catalogo por UF, documentos com versoes, compliance e analise [skip ci]
Espelho do routines: NestJS 10 + Fastify + TypeORM, modulos catalog (override
por UF), document (versoes + storage GCS), compliance (mesmo score do painel),
alerts (regua de vencimento, envio e v1.2) e analise plugavel (KeywordAnalyzer
-> OCR/LLM). 38 testes. Deploy aguarda banco 'documents' e secrets no hml2 —
por isso o [skip ci] no bootstrap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 01:42:24 -03:00

44 lines
1.3 KiB
YAML

# Espelha o ingress do `routines` no hml2: os dois hosts são servidos
# (homologation.clubpetro.com e lab.clubpetro.com), cada um com seu certificado.
# O rewrite tira o prefixo, então os controllers NÃO repetem `/documents`.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: documents
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: "true"
# PDFs de licença chegam a alguns MB; o default do nginx é 1m.
nginx.ingress.kubernetes.io/proxy-body-size: 12m
spec:
ingressClassName: nginx
rules:
- host: homologation.clubpetro.com
http:
paths:
- path: /api/v2/documents(/|$)(.*)
pathType: Prefix
backend:
service:
name: documents
port:
number: 80
- host: lab.clubpetro.com
http:
paths:
- path: /api/v2/documents(/|$)(.*)
pathType: Prefix
backend:
service:
name: documents
port:
number: 80
tls:
- hosts:
- homologation.clubpetro.com
- "*.homologation.clubpetro.com"
secretName: root-cert
- hosts:
- lab.clubpetro.com
secretName: lab-tls