Sign inSign up

denisitpro/pg-flyway-migrate

By denisitpro

Updated about 1 month ago

Helm chart to initialize PostgreSQL databases and run Flyway migrations

Helm
Developer tools
0

247

denisitpro/pg-flyway-migrate repository overview

📘 pg-flyway-migrate

Helm chart for running Flyway migrations against PostgreSQL databases in Kubernetes. Supports automatic database creation, Git-based migration loading, and ArgoCD integration.

✨ Features

  • 🔁 Flyway-based migrations using official flyway/flyway image
  • 🧱 Init containers for PostgreSQL DB bootstrap (bitnami/postgresql)
  • 📥 Git clone support for fetching migration scripts
  • 📦 OCI-compatible, Bitnami-style Helm structure
  • 🎯 Designed for GitOps / ArgoCD / CI/CD pipelines

📦 Images

  • flyway/flyway – migration engine
  • bitnami/postgresql – for createdb if needed
  • alpine/git – fetches migrations from Git repo

🛠 Example usage

helm upgrade --install pgm-backend oci://registry-1.docker.io/denisitpro/pg-flyway-migrate \
  --version 0.4.0 \
  --namespace app-namespace

🔧 Configuration (values.yaml)

db:
  host: postgres
  port: 5432
  dbName: myapp
  user: postgres
  password: "secure-password"

migrations:
  git:
    host: git.example.com
    username: readonly
    repository: /infra/myapp-db.git
    ref: master

Source code

https://github.com/denisitpro/helm-charts

Tag summary

Content type

Helm

Digest

sha256:7171d7733

Size

2.7 kB

Last updated

about 1 month ago

helm pull oci://registry-1.docker.io/denisitpro/pg-flyway-migrate --version 0.4.6