Skip to content

APS-4068 - use Postgres 15 instead of Mongo for feature deployments#1354

Merged
rustyjux merged 6 commits intodevfrom
feature/feature-pg
Feb 24, 2026
Merged

APS-4068 - use Postgres 15 instead of Mongo for feature deployments#1354
rustyjux merged 6 commits intodevfrom
feature/feature-pg

Conversation

@rustyjux
Copy link
Contributor

@rustyjux rustyjux commented Feb 20, 2026

Feature deploymentss now use Postgres 15 (public postgres:15 image) instead of MongoDB. Follows the same pattern as e2e (ADAPTER=knex, local/db/keystone-init.sql).

Postgres is deployed via inline k8s manifests (Deployment, Service, PVC, init ConfigMap, Keystone-schema Job). There is potential to use a helm chart but this seemed like the least overhead. Updated delete deployment (ci-remove.yaml) to handle this change.

Validation:

  • normal Portal functionality (can update Keystone data)
  • data is persisted across users/sessions, redeployments
  • manually validated the delete deployment commands (prob need to merge into default branch dev to run in GH)

🚀 Feature branch deployment: https://api-services-portal-feature-feature-pg.apps.silver.devops.gov.bc.ca

@rustyjux rustyjux changed the title use Postgres 15 instead of Mongo for feature deployments APS-4068 - use Postgres 15 instead of Mongo for feature deployments Feb 21, 2026
@github-actions
Copy link
Contributor

🔔 Friendly reminder: The following reviewers still need to review this PR: @danebenal, @Elson9, @ikethecoder

PS: @sdqdadat

Copy link
Contributor

@Elson9 Elson9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, my only concern is with storage-quota if a PVC is being created for each feature branch

@rustyjux
Copy link
Contributor Author

Looks good overall, my only concern is with storage-quota if a PVC is being created for each feature branch

This was the existing pattern. I guess they could all share one PVC but then we hit issues if there are many feature branches and cleanup is trickier.

Probably more problematic than PVC per feature branch is that right now old feature deployments aren't being cleaned up (either branches aren't being deleted, or the cleanup failed - I haven't dug into why there are so many). I would like to verify the cleanup workflow works but it needs to get merged into dev to see it run.

In any case, we can definitely reduce the PVC size. Ever more long-lived feature branches seeing more activity like Aidan's sdx ones are only using 0.5 GiB. So rather than 2 GiB I'll drop it to 1.

@rustyjux rustyjux merged commit c514ed7 into dev Feb 24, 2026
10 of 12 checks passed
@rustyjux rustyjux deleted the feature/feature-pg branch February 24, 2026 21:11
@rustyjux rustyjux mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants