diff --git a/tenants/acme/30-apps-stubs.yaml b/tenants/acme/30-apps-stubs.yaml index f187fad..c140c28 100644 --- a/tenants/acme/30-apps-stubs.yaml +++ b/tenants/acme/30-apps-stubs.yaml @@ -64,6 +64,7 @@ spec: - { path: /api/documentos, pathType: Prefix, backend: { service: { name: servico-documentos, port: { number: 80 } } } } - { path: /api/administrativo, pathType: Prefix, backend: { service: { name: servico-administrativo, port: { number: 80 } } } } - { path: /api/assistencia-social, pathType: Prefix, backend: { service: { name: servico-assistencia-social, port: { number: 80 } } } } + - { path: /api/pedagogico, pathType: Prefix, backend: { service: { name: servico-pedagogico, 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-acme.athleticmap.influxdigital.com.br diff --git a/tenants/acme/84-servico-pedagogico.yaml b/tenants/acme/84-servico-pedagogico.yaml new file mode 100644 index 0000000..40934ab --- /dev/null +++ b/tenants/acme/84-servico-pedagogico.yaml @@ -0,0 +1,54 @@ +# Bounded context "pedagogico" (boletim / acompanhamento academico, ADR-0002). +# Schema proprio "pedagogico"; roteado em /api/pedagogico no ingress. +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: servico-pedagogico + namespace: acme-prod + labels: { app: servico-pedagogico, athleticmap.io/contexto: pedagogico } +spec: + replicas: 1 + selector: { matchLabels: { app: servico-pedagogico } } + template: + metadata: + labels: { app: servico-pedagogico, athleticmap.io/contexto: pedagogico } + spec: + containers: + - name: servico-pedagogico + image: docker.io/library/servico-pedagogico: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_HIKARI_MAXIMUM_POOL_SIZE, value: "5" } + - 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-acme.athleticmap.influxdigital.com.br/realms/athleticmap" } + - { name: ATM_TENANT, value: "acme" } + resources: + requests: { cpu: 100m, memory: 300Mi } + limits: { cpu: "1", memory: 640Mi } + readinessProbe: + httpGet: { path: /api/pedagogico/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-pedagogico + namespace: acme-prod + labels: { app: servico-pedagogico } +spec: + selector: { app: servico-pedagogico } + ports: [{ name: http, port: 80, targetPort: 8083 }] diff --git a/tenants/acme/90-servico-bff.yaml b/tenants/acme/90-servico-bff.yaml index f273e78..d079d49 100644 --- a/tenants/acme/90-servico-bff.yaml +++ b/tenants/acme/90-servico-bff.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: servico-bff - image: docker.io/library/servico-bff:1.21 + image: docker.io/library/servico-bff:1.22 imagePullPolicy: Never ports: [{ containerPort: 8083 }] env: @@ -34,6 +34,7 @@ spec: - { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" } - { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" } - { name: ATM_ASSISTENCIA_SOCIAL_URL, value: "http://servico-assistencia-social" } + - { name: ATM_PEDAGOGICO_URL, value: "http://servico-pedagogico" } - { name: ATM_JWK_SET_URI, value: "http://keycloak:8080/realms/athleticmap/protocol/openid-connect/certs" } - { name: ATM_ISSUER, value: "https://auth-acme.athleticmap.influxdigital.com.br/realms/athleticmap" } - { name: ATM_TENANT, value: "acme" } diff --git a/tenants/acme/95-frontend-spa.yaml b/tenants/acme/95-frontend-spa.yaml index 0f1d772..17744c7 100644 --- a/tenants/acme/95-frontend-spa.yaml +++ b/tenants/acme/95-frontend-spa.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: frontend-spa - image: docker.io/library/frontend-spa:1.38 + image: docker.io/library/frontend-spa:1.39 imagePullPolicy: Never ports: [{ containerPort: 80 }] env: diff --git a/tenants/demo/30-apps-stubs.yaml b/tenants/demo/30-apps-stubs.yaml index 560c40a..1456596 100644 --- a/tenants/demo/30-apps-stubs.yaml +++ b/tenants/demo/30-apps-stubs.yaml @@ -64,6 +64,7 @@ spec: - { path: /api/documentos, pathType: Prefix, backend: { service: { name: servico-documentos, port: { number: 80 } } } } - { path: /api/administrativo, pathType: Prefix, backend: { service: { name: servico-administrativo, port: { number: 80 } } } } - { path: /api/assistencia-social, pathType: Prefix, backend: { service: { name: servico-assistencia-social, port: { number: 80 } } } } + - { path: /api/pedagogico, pathType: Prefix, backend: { service: { name: servico-pedagogico, 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-demo.athleticmap.influxdigital.com.br diff --git a/tenants/demo/84-servico-pedagogico.yaml b/tenants/demo/84-servico-pedagogico.yaml new file mode 100644 index 0000000..6e120b8 --- /dev/null +++ b/tenants/demo/84-servico-pedagogico.yaml @@ -0,0 +1,54 @@ +# Bounded context "pedagogico" (boletim / acompanhamento academico, ADR-0002). +# Schema proprio "pedagogico"; roteado em /api/pedagogico no ingress. +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: servico-pedagogico + namespace: demo-prod + labels: { app: servico-pedagogico, athleticmap.io/contexto: pedagogico } +spec: + replicas: 1 + selector: { matchLabels: { app: servico-pedagogico } } + template: + metadata: + labels: { app: servico-pedagogico, athleticmap.io/contexto: pedagogico } + spec: + containers: + - name: servico-pedagogico + image: docker.io/library/servico-pedagogico: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_HIKARI_MAXIMUM_POOL_SIZE, value: "5" } + - 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-demo.athleticmap.influxdigital.com.br/realms/athleticmap" } + - { name: ATM_TENANT, value: "demo" } + resources: + requests: { cpu: 100m, memory: 300Mi } + limits: { cpu: "1", memory: 640Mi } + readinessProbe: + httpGet: { path: /api/pedagogico/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-pedagogico + namespace: demo-prod + labels: { app: servico-pedagogico } +spec: + selector: { app: servico-pedagogico } + ports: [{ name: http, port: 80, targetPort: 8083 }] diff --git a/tenants/demo/90-servico-bff.yaml b/tenants/demo/90-servico-bff.yaml index ac9ae53..5537591 100644 --- a/tenants/demo/90-servico-bff.yaml +++ b/tenants/demo/90-servico-bff.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: servico-bff - image: docker.io/library/servico-bff:1.21 + image: docker.io/library/servico-bff:1.22 imagePullPolicy: Never ports: [{ containerPort: 8083 }] env: @@ -34,6 +34,7 @@ spec: - { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" } - { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" } - { name: ATM_ASSISTENCIA_SOCIAL_URL, value: "http://servico-assistencia-social" } + - { name: ATM_PEDAGOGICO_URL, value: "http://servico-pedagogico" } - { name: ATM_JWK_SET_URI, value: "http://keycloak:8080/realms/athleticmap/protocol/openid-connect/certs" } - { name: ATM_ISSUER, value: "https://auth-demo.athleticmap.influxdigital.com.br/realms/athleticmap" } - { name: ATM_TENANT, value: "demo" } diff --git a/tenants/demo/95-frontend-spa.yaml b/tenants/demo/95-frontend-spa.yaml index 7129fad..22a65a7 100644 --- a/tenants/demo/95-frontend-spa.yaml +++ b/tenants/demo/95-frontend-spa.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: frontend-spa - image: docker.io/library/frontend-spa:1.38 + image: docker.io/library/frontend-spa:1.39 imagePullPolicy: Never ports: [{ containerPort: 80 }] env: diff --git a/tenants/piloto/30-apps-stubs.yaml b/tenants/piloto/30-apps-stubs.yaml index c23070d..ecc088b 100644 --- a/tenants/piloto/30-apps-stubs.yaml +++ b/tenants/piloto/30-apps-stubs.yaml @@ -64,6 +64,7 @@ spec: - { path: /api/documentos, pathType: Prefix, backend: { service: { name: servico-documentos, port: { number: 80 } } } } - { path: /api/administrativo, pathType: Prefix, backend: { service: { name: servico-administrativo, port: { number: 80 } } } } - { path: /api/assistencia-social, pathType: Prefix, backend: { service: { name: servico-assistencia-social, port: { number: 80 } } } } + - { path: /api/pedagogico, pathType: Prefix, backend: { service: { name: servico-pedagogico, 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 diff --git a/tenants/piloto/84-servico-pedagogico.yaml b/tenants/piloto/84-servico-pedagogico.yaml new file mode 100644 index 0000000..7f470b1 --- /dev/null +++ b/tenants/piloto/84-servico-pedagogico.yaml @@ -0,0 +1,54 @@ +# Bounded context "pedagogico" (boletim / acompanhamento academico, ADR-0002). +# Schema proprio "pedagogico"; roteado em /api/pedagogico no ingress. +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: servico-pedagogico + namespace: piloto-prod + labels: { app: servico-pedagogico, athleticmap.io/contexto: pedagogico } +spec: + replicas: 1 + selector: { matchLabels: { app: servico-pedagogico } } + template: + metadata: + labels: { app: servico-pedagogico, athleticmap.io/contexto: pedagogico } + spec: + containers: + - name: servico-pedagogico + image: docker.io/library/servico-pedagogico: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_HIKARI_MAXIMUM_POOL_SIZE, value: "5" } + - 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: 100m, memory: 300Mi } + limits: { cpu: "1", memory: 640Mi } + readinessProbe: + httpGet: { path: /api/pedagogico/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-pedagogico + namespace: piloto-prod + labels: { app: servico-pedagogico } +spec: + selector: { app: servico-pedagogico } + ports: [{ name: http, port: 80, targetPort: 8083 }] diff --git a/tenants/piloto/90-servico-bff.yaml b/tenants/piloto/90-servico-bff.yaml index 664d21d..8dd2510 100644 --- a/tenants/piloto/90-servico-bff.yaml +++ b/tenants/piloto/90-servico-bff.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: servico-bff - image: docker.io/library/servico-bff:1.21 + image: docker.io/library/servico-bff:1.22 imagePullPolicy: Never ports: [{ containerPort: 8083 }] env: @@ -34,6 +34,7 @@ spec: - { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" } - { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" } - { name: ATM_ASSISTENCIA_SOCIAL_URL, value: "http://servico-assistencia-social" } + - { name: ATM_PEDAGOGICO_URL, value: "http://servico-pedagogico" } - { 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" } diff --git a/tenants/piloto/95-frontend-spa.yaml b/tenants/piloto/95-frontend-spa.yaml index bf02f5c..0aa92ff 100644 --- a/tenants/piloto/95-frontend-spa.yaml +++ b/tenants/piloto/95-frontend-spa.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: frontend-spa - image: docker.io/library/frontend-spa:1.38 + image: docker.io/library/frontend-spa:1.39 imagePullPolicy: Never ports: [{ containerPort: 80 }] env: