Skip to content

Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances with data replication and failover enabled out-of-the box. It brings simplicity when using PostgreSql considering how complex managing stateful-set's life-cycle and data replication could be with Kubernetes. Kubegres is open source

Notifications You must be signed in to change notification settings

miaad-akbari/HA-postgresql-kubegres

Repository files navigation

Kubegres PostgreSQL Deployment

This manifest file defines a set of Kubernetes resources for deploying a PostgreSQL database using the Kubegres operator, with persistent storage provided by a GlusterFS-based storage class. The code also includes a secret for storing sensitive information such as passwords and access keys, and an IngressRouteTCP object for exposing the database service over the mypostgres entry point. Prerequisites

Before deploying the resources, you should ensure that you have the following prerequisites installed:

A Kubernetes cluster with Kubegres and Traefik installed A GlusterFS-based storage class configured in the cluster

Usage

To deploy the resources, run the following command:

kubectl apply -f kubegres-postgres.yaml

Replace kubegres-postgres.yaml with the name of the manifest file. Customization

The manifest file includes hard-coded configurations for each resource, which may not be suitable for all environments. To customize the deployment, you can modify the manifest file to change the configuration of each resource. Error handling

The manifest file does not include any error checking or handling. If a command fails, the script will continue to execute without providing any indication that an error occurred. This could lead to unexpected behavior and potentially compromise the stability of the system. It's important to include error handling and logging to ensure that any issues are detected and addressed promptly. Contributing

If you would like to contribute to this project, please feel free to submit a pull request or open an issue on GitHub.

About

Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances with data replication and failover enabled out-of-the box. It brings simplicity when using PostgreSql considering how complex managing stateful-set's life-cycle and data replication could be with Kubernetes. Kubegres is open source

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published