Coder Social home page Coder Social logo

cloudnative-pg / cloudnative-pg.github.io Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 5.0 20.56 MB

CloudNativePG website

Home Page: https://cloudnative-pg.io

License: Apache License 2.0

CSS 15.76% HTML 78.77% JavaScript 1.31% Shell 4.15%
cloudnative database k8s kubernetes postgres postgresql website

cloudnative-pg.github.io's Introduction

CNCF Landscape Latest Release GitHub License Documentation Stack Overflow

Welcome to the CloudNativePG project!

CloudNativePG is a comprehensive open source platform designed to seamlessly manage PostgreSQL databases within Kubernetes environments, covering the entire operational lifecycle from initial deployment to ongoing maintenance. The main component is the CloudNativePG operator.

CloudNativePG was originally built and sponsored by EDB.

Table of content

Getting Started

The best way to get started is with the "Quickstart" section in the documentation.

Scope

The goal of CloudNativePG is to increase the adoption of PostgreSQL, one of the most loved DBMS in traditional VM and bare metal environments, inside Kubernetes, thus making the database an integral part of the development process and GitOps CI/CD automated pipelines.

In scope

CloudNativePG has been designed by Postgres experts with Kubernetes administrators in mind. Put simply, it leverages Kubernetes by extending its controller and by defining, in a programmatic way, all the actions that a good DBA would normally do when managing a highly available PostgreSQL database cluster.

Since the inception, our philosophy has been to adopt a Kubernetes native approach to PostgreSQL cluster management, making incremental decisions that would answer the fundamental question: "What would a Kubernetes user expect from a Postgres operator?".

The most important decision we made is to have the status of a PostgreSQL cluster directly available in the Cluster resource, so to inspect it through the Kubernetes API. We've fully embraced the operator pattern and eventual consistency, two of the core principles upon which Kubernetes is built for managing complex applications.

As a result, the operator is responsible for managing the status of the Cluster resource, keeping it up to date with the information that each PostgreSQL instance manager regularly reports back through the API server. Changes to the cluster status might trigger, for example, actions like:

  • a PostgreSQL failover where, after an unexpected failure of a cluster's primary instance, the operator itself elects the new primary, updates the status, and directly coordinates the operation through the reconciliation loop, by relying on the instance managers

  • scaling up or down the number of read-only replicas, based on a positive or negative variation in the number of desired instances in the cluster, so that the operator creates or removes the required resources to run PostgreSQL, such as persistent volumes, persistent volume claims, pods, secrets, config maps, and then coordinates cloning and streaming replication tasks

  • updates of the endpoints of the PostgreSQL services that applications rely on to interact with the database, as Kubernetes represents the single source of truth and authority

  • updates of container images in a rolling fashion, following a change in the image name, by first updating the pods where replicas are running, and then the primary, issuing a switchover first

The latter example is based on another pillar of CloudNativePG: immutable application containers - as explained in the blog article "Why EDB Chose Immutable Application Containers".

The above list can be extended. However, the gist is that CloudNativePG exclusively relies on the Kubernetes API server and the instance manager to coordinate the complex operations that need to take place in a business continuity PostgreSQL cluster, without requiring any assistance from an intermediate management tool responsible for high availability and failover management like similar open source operators.

CloudNativePG also manages additional resources to help the Cluster resource manage PostgreSQL - currently Backup, ClusterImageCatalog, ImageCatalog, Pooler, and ScheduledBackup.

Fully embracing Kubernetes means adopting a hands-off approach during temporary failures of the Kubernetes API server. In such instances, the operator refrains from taking action, deferring decisions until the API server is operational again. Meanwhile, Postgres instances persist, maintaining operations based on the latest known state of the cluster.

Out of scope

CloudNativePG is exclusively focused on the PostgreSQL database management system maintained by the PostgreSQL Global Development Group (PGDG). We are not currently considering adding to CloudNativePG extensions or capabilities that are included in forks of the PostgreSQL database management system, unless in the form of extensible or pluggable frameworks.

CloudNativePG doesn't intend to pursue database independence (e.g. control a MariaDB cluster).

Communications

Resources

Adopters

A list of publicly known users of the CloudNativePG operator is in ADOPTERS.md. Help us grow our community and CloudNativePG by adding yourself and your organization to this list!

CloudNativePG at KubeCon

Useful links

Star History

Star History Chart

Trademarks

Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.

cloudnative-pg.github.io's People

Contributors

aradhanabirewar avatar bb-transpower avatar drsm79 avatar gbartolini avatar jlong49 avatar jsilvela avatar kelpoole avatar leonardoce avatar niccolofei avatar sxd avatar tamaranocentini avatar utaladriz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cloudnative-pg.github.io's Issues

Fix twitter card

Twitter card doesn't support SVG so the image must be PNG or JPG

Prepare documentation for 1.16.0 and 1.15.2

CloudNativePG 1.16.0 will be released on July 7. We need to prepare the documentation for that version.

This will be the first time we release a patch release for another minor release, 1.15.2.

Add support for mobile devices

While this is not necessary for the open source launch (April 20, 2022), before KubeCon launch (May 10, 2022) we need to make sure that the website is accessible through mobile devices.

Properly display links

In the blog page it is hard to understand which text is actually part of a hyperlink. Can this be fixed please?

Grafana Sidecar Dashboards has to be enabled

By default sidecar.dashboards.enabled is set to false as stated in The Grafana Helm Chart Doc

It has to be enabled in this config in order to Grafana automatically creates the dashboard from the configMap.

grafana:
enabled: true
# -- the grafana admin password
adminPassword: prom-operator
defaultDashboardsEnabled: false

It Should look lile:

  grafana:
    enabled: true
    # -- the grafana admin password
    adminPassword: prom-operator
    defaultDashboardsEnabled: false
    sidecar:
      dashboards:
        enabled: true

Website readability/accessibility

Hi, I wanted to leave a note here that the website is not very readable - red on blue is hard for me to read (I have no visual impairment), and I think the difference in contrast is not enough for people who do have vision problems. Perhaps we can investigate a change in colours?

Fix narrow tag cloud and blog snippets, and UPPERCASE

In blog pages, we have the article displayed in normal width.
At the bottom, there is a section with the tag cloud, and other posts.
This is displayed super narrow.
And the tags in all caps are an eye sore and look like a shady site.
Also, the images in the snippets don't have their aspect ratios preserved.

Screen Shot 2023-04-26 at 16 31 05

Add author page & RSS feed

Each author should have their own page, with all their blogs on, have this x-linked with the posts themselves, and an RSS feed per author.

Enable Open Graph

We should enable Open Graph to have pretty presentation of the URL in different places like Slack

Add twitter card

When sharing the post on twitter we should make use of the twitter card

Blog section renders poorly on mobile

While the landing page, and the Documents section, render OK on mobile,
the Blogs section, and individual blog entries, are on the verge of unusable.

Salient issues:

  • The <h1> font is so large that CloudNativePG will not fit in portrait
    orientation, and will screw up the page width for the whole post. (see grab)
  • The blog image gets squashed (see grab)
  • The button Continue Reading is broken (see grab)
  • When rendering a blog post, the left and right margins are too big, leaving
    little room for the text (see grab)

Screen Shot 2023-05-01 at 12 34 14
Screen Shot 2023-05-01 at 12 34 33
Screen Shot 2023-05-01 at 12 34 55
Screen Shot 2023-05-01 at 12 36 46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.