jasonodonnell / postgres-operator-playbooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crunchy Data PostgreSQL Operator Playbooks

Latest Release: 3.3.0 2023-04-14

General

This repository contains Ansible Roles for deploying the Crunchy PostgreSQL Operator for Kubernetes and OpenShift.

Installation

The following are required for installation using these roles:

Next, edit the inventory file included to configure the Crunchy PostgreSQL Operator installation.

Once the inventory file has been configured, run the following command to deploy:

ansible-playbook -i inventory install.yml

After installation completes, set the following environment variables for pgo to work correctly:

export PGO_CA_CERT=/tmp/pgo-config/pg-operator.crt
export PGO_CLIENT_CERT=/tmp/pgo-config/pg-operator.crt
export PGO_CLIENT_KEY=/tmp/pgo-config/privkey.pem
export URL=$(kubectl get service postgres-operator -o=jsonpath="{.spec.clusterIP}")
export CO_APISERVER_URL=https://${URL?}:8443'

Finally, test pgo is communicating with the PostgreSQL Operator API Service:

pgo version

More Information

Please view the official Crunchy Data PostgreSQL Operator documentation here.

About