# P4.3-P4.9 — runtime-saude do acme. GERADO por scripts/consolidar_demo.py a partir # da uniao do ambiente dos servicos que ele absorve. Nao edite a mao sem rodar o # --check de novo. apiVersion: apps/v1 kind: Deployment metadata: name: runtime-saude namespace: acme-prod labels: app: runtime-saude spec: replicas: 1 selector: matchLabels: app: runtime-saude template: metadata: labels: app: runtime-saude athleticmap.io/contexto: runtime-saude spec: containers: - name: runtime-saude image: docker.io/library/runtime-saude:1.2-demo imagePullPolicy: Never ports: - containerPort: 8083 env: - name: SPRING_DATASOURCE_URL value: jdbc:postgresql://pgbouncer.plataforma-prod.svc.cluster.local:6432/athleticmap_acme - name: SPRING_DATASOURCE_USERNAME value: r_acme - name: SPRING_DATASOURCE_PASSWORD valueFrom: secretKeyRef: name: db-compartilhado 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 - name: GARMIN_REDIRECT_URI value: https://acme.athleticmap.influxdigital.com.br/api/public/integrations/garmin/callback - name: GARMIN_FRONTEND_REDIRECT value: https://acme.athleticmap.influxdigital.com.br/integracoes/garmin - name: GARMIN_CLIENT_ID valueFrom: secretKeyRef: name: garmin-oauth key: GARMIN_CLIENT_ID - name: GARMIN_CLIENT_SECRET valueFrom: secretKeyRef: name: garmin-oauth key: GARMIN_CLIENT_SECRET - name: ATM_AUDITORIA_RETENCAO_DIAS value: '730' - name: SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE value: '10' resources: requests: cpu: 100m memory: 384Mi limits: cpu: '1' memory: 768Mi readinessProbe: httpGet: path: /actuator/health/readiness port: 8083 initialDelaySeconds: 25 periodSeconds: 10 failureThreshold: 30 livenessProbe: httpGet: path: /actuator/health/liveness port: 8083 initialDelaySeconds: 90 periodSeconds: 20 failureThreshold: 6 --- apiVersion: v1 kind: Service metadata: name: runtime-saude namespace: acme-prod labels: app: runtime-saude spec: selector: app: runtime-saude ports: - name: http port: 80 targetPort: 8083