apiVersion: apps/v1 kind: Deployment metadata: name: techlog-backend spec: template: spec: containers: - name: backend envFrom: - configMapRef: name: techlog-backend-prod-env env: # Turns on the prod startup validators (schema safety, Flyway # safety, error-detail and body-capture off, verify-full TLS, # no H2) and drops local-only answers such as the dev salt. - name: SPRING_PROFILES_ACTIVE value: prod # Explicit env wins over envFrom; keep the direct Spring key in # step with APP_DATASOURCE_URL so both carry verify-full. - name: SPRING_DATASOURCE_URL value: jdbc:postgresql://platform-postgres-rw.platform-data.svc.cluster.local:5432/techlog?sslmode=verify-full&sslrootcert=/etc/techlog-db-ca/ca.crt - name: APP_DATASOURCE_PASSWORD valueFrom: secretKeyRef: name: hyeonworks-secrets key: APP_DB_PASSWORD - name: APP_PRIVACY_PSEUDONYMIZATION_SALT valueFrom: secretKeyRef: name: hyeonworks-secrets key: APP_PRIVACY_PSEUDONYMIZATION_SALT volumeMounts: - name: platform-postgres-ca mountPath: /etc/techlog-db-ca readOnly: true volumes: # Public CA certificate of the platform-postgres CloudNativePG cluster, # copied into this namespace. CloudNativePG rotates it; see README. - name: platform-postgres-ca configMap: name: platform-postgres-ca