|
1 | | -# `pgo`, the Postgres Operator Client |
| 1 | +<h1 align="center">pgo: The CLI for the Postgres Operator from Crunchy Data</h1> |
| 2 | +<p align="center"> |
| 3 | + <img width="150" src="./docs/static/logos/pgo.svg" alt="pgo: The CLI for the Postgres Operator from Crunchy Data"/> |
| 4 | +</p> |
2 | 5 |
|
| 6 | +# `pgo`, the Postgres Operator CLI from Crunchy Data |
| 7 | + |
| 8 | +Welcome to the repository for the `pgo` Command Line Interface (CLI) for PGO, |
| 9 | +the Postgres Operator from Crunchy Data! Built as a `kubectl` plugin, the `pgo` |
| 10 | +CLI facilitates the creation and management of PostgreSQL clusters created using |
| 11 | +the Crunchy Postgres Operator. For more information about using the CLI and the |
| 12 | +various commands available, please see the PGO CLI |
| 13 | +[documentation](https://access.crunchydata.com/documentation/postgres-operator-client/latest). |
| 14 | + |
| 15 | +## Install `pgo`, the Postgres Operator for Kubernetes Client |
| 16 | + |
| 17 | +The following steps will allow you to download and install the `pgo` |
| 18 | +[kubectl plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/) |
| 19 | +in your local environment. |
| 20 | + |
| 21 | +### Prerequisites |
| 22 | + |
| 23 | +Depending on your deployment type, Kubernetes or OpenShift, `kubectl` or `oc` |
| 24 | +must be installed and configured in your environment. For the purposes of these |
| 25 | +instructions we will be using the `kubectl` client. The `pgo` |
| 26 | +[kubectl plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/) |
| 27 | +will use the role-based access controls (RBAC) that are configured for your |
| 28 | +`kubectl` client. |
| 29 | + |
| 30 | +### Download the binary |
| 31 | + |
| 32 | +The `kubectl-pgo` binary is available either through the Crunchy Data |
| 33 | +[Access Portal](https://access.crunchydata.com/downloads/) or via |
| 34 | +[GitHub](https://github.com/CrunchyData/postgres-operator-client/releases). |
| 35 | + |
| 36 | +### Installing the Client |
| 37 | + |
| 38 | +Once downloaded, move the `kubectl-pgo` binary to `/usr/local/bin` and make it |
| 39 | +executable by running the following commands: |
| 40 | + |
| 41 | +``` |
| 42 | +sudo mv /PATH/TO/kubectl-pgo /usr/local/bin/kubectl-pgo |
| 43 | +sudo chmod +x /usr/local/bin/kubectl-pgo |
| 44 | +``` |
| 45 | + |
| 46 | +### Checking the plugin install |
| 47 | + |
| 48 | +Now that the `kubectl-pgo` binary is installed on your `PATH`, it can be used as |
| 49 | +a [kubectl plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/). |
| 50 | +Run the following command to ensure that the plugin is working: |
| 51 | + |
| 52 | +``` |
| 53 | +kubectl pgo version |
| 54 | +``` |
| 55 | + |
| 56 | +or if running in OpenShift: |
| 57 | +``` |
| 58 | +oc pgo version |
| 59 | +``` |
| 60 | + |
| 61 | +## Compatibility |
| 62 | + |
| 63 | +The `pgo` CLI supports all actively maintained versions of PGO v5+. |
| 64 | + |
| 65 | +## More Information |
| 66 | + |
| 67 | +For more about PGO, please see the |
| 68 | +[PGO Documentation](https://access.crunchydata.com/documentation/postgres-operator/). |
0 commit comments