Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.27 KB

File metadata and controls

34 lines (26 loc) · 1.27 KB

Simple Postgres Database Operator

The Postgres Database Operator is a Kubernetes Operator designed to simplify the deploying and monitoring of PostgreSQL database deployments within a Kubernetes environment. By leveraging the power of Kubernetes Operators, this project automates tasks such as provisioning, scaling, and maintaining the desired state of PostgreSQL instances.

Installation

Prerequisites

Steps

  1. Clone the repository:
    git clone https://github.com/devansh/database-op.git
    cd database-op
    kubectl apply -f config/crd/bases/database.devansh.com_postgres.yaml
    make run  (if you are running locally)
    kubectl apply -f config/samples/database_v1alpha1_postgres.yaml

Usage

  • Ensure that PostgreSQL instances are running and maintain their state within the specified namespace.
  • Scale PostgreSQL deployments based on predefined hourly time intervals.

Extra:

operator-sdk init --domain devansh.com --repo github.com/devansh/database-op
operator-sdk create api --group database --version v1alpha1 --kind Postgres --resource --controller