Using crunchydata postgres-operator
https://access.crunchydata.com/documentation/postgres-operator/4.5.1/quickstart/

Installation
------------

### Install the PostgreSQL Operator

On environments that have a [default storage class](https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/) set up (which is most modern Kubernetes environments), the below command should work:

``` Bash
    kubectl create namespace pgo
    kubectl apply -f https://raw.githubusercontent.com/CrunchyData/postgres-operator/v4.5.1/installers/kubectl/postgres-operator.yml
```

### Create Postgress Cluster.

``` Bash
pgo create cluster pgsql --metrics -n dbs --pgbackrest-storage-type=local,s3 --pgbackrest-s3-key= --pgbackrest-s3-key-secret= --pgbackrest-s3-bucket=pgo-k8s-cur-sapian-local --pgbackrest-s3-endpoint=s3.us-east-1.amazonaws.com --pgbackrest-s3-region=us-east-1 --pgbackrest-s3-uri-style=host --pgbackrest-s3-verify-tls=true
```