assistencia-social: novo servico + Atendimento Social (social:1.0 + bff:1.19 + frontend-spa:1.34)
This commit is contained in:
@@ -63,6 +63,7 @@ spec:
|
|||||||
- { path: /api/financeiro, pathType: Prefix, backend: { service: { name: servico-financeiro, port: { number: 80 } } } }
|
- { path: /api/financeiro, pathType: Prefix, backend: { service: { name: servico-financeiro, port: { number: 80 } } } }
|
||||||
- { path: /api/documentos, pathType: Prefix, backend: { service: { name: servico-documentos, port: { number: 80 } } } }
|
- { 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/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, pathType: Prefix, backend: { service: { name: backend, 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 } } } }
|
- { path: /, pathType: Prefix, backend: { service: { name: frontend-spa, port: { number: 80 } } } }
|
||||||
- host: auth-acme.athleticmap.influxdigital.com.br
|
- host: auth-acme.athleticmap.influxdigital.com.br
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# Bounded context "assistencia-social" (servico social, ADR-0002).
|
||||||
|
# Schema proprio "assistencia_social"; roteado em /api/assistencia-social no ingress.
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: servico-assistencia-social
|
||||||
|
namespace: acme-prod
|
||||||
|
labels: { app: servico-assistencia-social, athleticmap.io/contexto: assistencia-social }
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector: { matchLabels: { app: servico-assistencia-social } }
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels: { app: servico-assistencia-social, athleticmap.io/contexto: assistencia-social }
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: servico-assistencia-social
|
||||||
|
image: docker.io/library/servico-assistencia-social: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-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/assistencia-social/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-assistencia-social
|
||||||
|
namespace: acme-prod
|
||||||
|
labels: { app: servico-assistencia-social }
|
||||||
|
spec:
|
||||||
|
selector: { app: servico-assistencia-social }
|
||||||
|
ports: [{ name: http, port: 80, targetPort: 8083 }]
|
||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: servico-bff
|
- name: servico-bff
|
||||||
image: docker.io/library/servico-bff:1.18
|
image: docker.io/library/servico-bff:1.19
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports: [{ containerPort: 8083 }]
|
ports: [{ containerPort: 8083 }]
|
||||||
env:
|
env:
|
||||||
@@ -33,6 +33,7 @@ spec:
|
|||||||
- { name: ATM_FINANCEIRO_URL, value: "http://servico-financeiro" }
|
- { name: ATM_FINANCEIRO_URL, value: "http://servico-financeiro" }
|
||||||
- { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" }
|
- { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" }
|
||||||
- { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" }
|
- { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" }
|
||||||
|
- { name: ATM_ASSISTENCIA_SOCIAL_URL, value: "http://servico-assistencia-social" }
|
||||||
- { name: ATM_JWK_SET_URI, value: "http://keycloak:8080/realms/athleticmap/protocol/openid-connect/certs" }
|
- { 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_ISSUER, value: "https://auth-acme.athleticmap.influxdigital.com.br/realms/athleticmap" }
|
||||||
- { name: ATM_TENANT, value: "acme" }
|
- { name: ATM_TENANT, value: "acme" }
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: frontend-spa
|
- name: frontend-spa
|
||||||
image: docker.io/library/frontend-spa:1.33
|
image: docker.io/library/frontend-spa:1.34
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports: [{ containerPort: 80 }]
|
ports: [{ containerPort: 80 }]
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ spec:
|
|||||||
- { path: /api/financeiro, pathType: Prefix, backend: { service: { name: servico-financeiro, port: { number: 80 } } } }
|
- { path: /api/financeiro, pathType: Prefix, backend: { service: { name: servico-financeiro, port: { number: 80 } } } }
|
||||||
- { path: /api/documentos, pathType: Prefix, backend: { service: { name: servico-documentos, port: { number: 80 } } } }
|
- { 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/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, pathType: Prefix, backend: { service: { name: backend, 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 } } } }
|
- { path: /, pathType: Prefix, backend: { service: { name: frontend-spa, port: { number: 80 } } } }
|
||||||
- host: auth-demo.athleticmap.influxdigital.com.br
|
- host: auth-demo.athleticmap.influxdigital.com.br
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# Bounded context "assistencia-social" (servico social, ADR-0002).
|
||||||
|
# Schema proprio "assistencia_social"; roteado em /api/assistencia-social no ingress.
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: servico-assistencia-social
|
||||||
|
namespace: demo-prod
|
||||||
|
labels: { app: servico-assistencia-social, athleticmap.io/contexto: assistencia-social }
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector: { matchLabels: { app: servico-assistencia-social } }
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels: { app: servico-assistencia-social, athleticmap.io/contexto: assistencia-social }
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: servico-assistencia-social
|
||||||
|
image: docker.io/library/servico-assistencia-social: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-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/assistencia-social/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-assistencia-social
|
||||||
|
namespace: demo-prod
|
||||||
|
labels: { app: servico-assistencia-social }
|
||||||
|
spec:
|
||||||
|
selector: { app: servico-assistencia-social }
|
||||||
|
ports: [{ name: http, port: 80, targetPort: 8083 }]
|
||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: servico-bff
|
- name: servico-bff
|
||||||
image: docker.io/library/servico-bff:1.18
|
image: docker.io/library/servico-bff:1.19
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports: [{ containerPort: 8083 }]
|
ports: [{ containerPort: 8083 }]
|
||||||
env:
|
env:
|
||||||
@@ -33,6 +33,7 @@ spec:
|
|||||||
- { name: ATM_FINANCEIRO_URL, value: "http://servico-financeiro" }
|
- { name: ATM_FINANCEIRO_URL, value: "http://servico-financeiro" }
|
||||||
- { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" }
|
- { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" }
|
||||||
- { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" }
|
- { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" }
|
||||||
|
- { name: ATM_ASSISTENCIA_SOCIAL_URL, value: "http://servico-assistencia-social" }
|
||||||
- { name: ATM_JWK_SET_URI, value: "http://keycloak:8080/realms/athleticmap/protocol/openid-connect/certs" }
|
- { 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_ISSUER, value: "https://auth-demo.athleticmap.influxdigital.com.br/realms/athleticmap" }
|
||||||
- { name: ATM_TENANT, value: "demo" }
|
- { name: ATM_TENANT, value: "demo" }
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: frontend-spa
|
- name: frontend-spa
|
||||||
image: docker.io/library/frontend-spa:1.33
|
image: docker.io/library/frontend-spa:1.34
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports: [{ containerPort: 80 }]
|
ports: [{ containerPort: 80 }]
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ spec:
|
|||||||
- { path: /api/financeiro, pathType: Prefix, backend: { service: { name: servico-financeiro, port: { number: 80 } } } }
|
- { path: /api/financeiro, pathType: Prefix, backend: { service: { name: servico-financeiro, port: { number: 80 } } } }
|
||||||
- { path: /api/documentos, pathType: Prefix, backend: { service: { name: servico-documentos, port: { number: 80 } } } }
|
- { 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/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, pathType: Prefix, backend: { service: { name: backend, 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 } } } }
|
- { path: /, pathType: Prefix, backend: { service: { name: frontend-spa, port: { number: 80 } } } }
|
||||||
- host: auth-piloto.athleticmap.influxdigital.com.br
|
- host: auth-piloto.athleticmap.influxdigital.com.br
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# Bounded context "assistencia-social" (servico social, ADR-0002).
|
||||||
|
# Schema proprio "assistencia_social"; roteado em /api/assistencia-social no ingress.
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: servico-assistencia-social
|
||||||
|
namespace: piloto-prod
|
||||||
|
labels: { app: servico-assistencia-social, athleticmap.io/contexto: assistencia-social }
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector: { matchLabels: { app: servico-assistencia-social } }
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels: { app: servico-assistencia-social, athleticmap.io/contexto: assistencia-social }
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: servico-assistencia-social
|
||||||
|
image: docker.io/library/servico-assistencia-social: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: 100m, memory: 300Mi }
|
||||||
|
limits: { cpu: "1", memory: 640Mi }
|
||||||
|
readinessProbe:
|
||||||
|
httpGet: { path: /api/assistencia-social/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-assistencia-social
|
||||||
|
namespace: piloto-prod
|
||||||
|
labels: { app: servico-assistencia-social }
|
||||||
|
spec:
|
||||||
|
selector: { app: servico-assistencia-social }
|
||||||
|
ports: [{ name: http, port: 80, targetPort: 8083 }]
|
||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: servico-bff
|
- name: servico-bff
|
||||||
image: docker.io/library/servico-bff:1.18
|
image: docker.io/library/servico-bff:1.19
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports: [{ containerPort: 8083 }]
|
ports: [{ containerPort: 8083 }]
|
||||||
env:
|
env:
|
||||||
@@ -33,6 +33,7 @@ spec:
|
|||||||
- { name: ATM_FINANCEIRO_URL, value: "http://servico-financeiro" }
|
- { name: ATM_FINANCEIRO_URL, value: "http://servico-financeiro" }
|
||||||
- { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" }
|
- { name: ATM_DOCUMENTOS_URL, value: "http://servico-documentos" }
|
||||||
- { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" }
|
- { name: ATM_ADMINISTRATIVO_URL, value: "http://servico-administrativo" }
|
||||||
|
- { name: ATM_ASSISTENCIA_SOCIAL_URL, value: "http://servico-assistencia-social" }
|
||||||
- { name: ATM_JWK_SET_URI, value: "http://keycloak:8080/realms/athleticmap/protocol/openid-connect/certs" }
|
- { 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_ISSUER, value: "https://auth-piloto.athleticmap.influxdigital.com.br/realms/athleticmap" }
|
||||||
- { name: ATM_TENANT, value: "piloto" }
|
- { name: ATM_TENANT, value: "piloto" }
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: frontend-spa
|
- name: frontend-spa
|
||||||
image: docker.io/library/frontend-spa:1.33
|
image: docker.io/library/frontend-spa:1.34
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports: [{ containerPort: 80 }]
|
ports: [{ containerPort: 80 }]
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user