pgopr
is an operator that controls a PostgreSQL cluster and related technologies using Kubernetes 1.23+.
- PostgreSQL 13 primary instance
- Command line interface
- CustomResourceDefinition interface
- Shell completion
- Kubernetes 1.24+
For Fedora 36:
dnf install -y git rust rust-std-static cargo rustfmt clippy postgresql
git clone https://github.com/pgopr/pgopr.git
cd pgopr
cargo build
cd target/debug
kind create cluster
./pgopr install
./pgopr provision primary
kubectl port-forward postgresql-XYZ 5432:5432
psql -h localhost -p 5432 -U myuser --password mydb
./pgopr retire primary
./pgopr uninstall
kind delete cluster
Using mypass
as the password.
Contributions to pgopr
are managed on GitHub.com
Contributions are most welcome !
Please, consult our Code of Conduct policies for interacting in our community.
Consider giving the project a star on GitHub if you find it useful.