Skip to content

Commit a285f5e

Browse files
tjmoore4jkatz
authored andcommitted
Postgres Operator Installer documentation updates
This updates the current installer installation documentation so that the references to the client-setup.sh file always match the version of the documentation. It also clarifies how the pgo client should be used to validate the initial installation.
1 parent 2294c69 commit a285f5e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

docs/content/installation/postgres-operator.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ kubectl apply -f /path/to/postgres-operator.yml
187187
To use the [`pgo` Client]({{< relref "/installation/pgo-client" >}}),
188188
there are a few additional steps to take in order to get it to work with you
189189
PostgreSQL Operator installation. For convenience, you can download and run the
190-
[`client-setup.sh`](https://raw.githubusercontent.com/CrunchyData/postgres-operator/master/installers/kubectl/client-setup.sh)
190+
[`client-setup.sh`](https://raw.githubusercontent.com/CrunchyData/postgres-operator/v{{< param operatorVersion >}}/installers/kubectl/client-setup.sh)
191191
script in your local environment:
192192

193193
```shell
194-
curl https://raw.githubusercontent.com/CrunchyData/postgres-operator/master/installers/kubectl/client-setup.sh > client-setup.sh
194+
curl https://raw.githubusercontent.com/CrunchyData/postgres-operator/v{{< param operatorVersion >}}/installers/kubectl/client-setup.sh > client-setup.sh
195195
chmod +x client-setup.sh
196196
./client-setup.sh
197197
```
@@ -260,7 +260,21 @@ In a new console window, run the following command to set up a port forward:
260260
kubectl -n pgo port-forward svc/postgres-operator 8443:8443
261261
```
262262

263-
In another console window, run the `pgo version` command:
263+
Next, in another console window, set the following environment variable to configure the API server address:
264+
265+
```bash
266+
cat <<EOF >> ${HOME?}/.bashrc
267+
export PGO_APISERVER_URL="https://127.0.0.1:8443"
268+
EOF
269+
```
270+
271+
Apply those changes to the current session by running:
272+
273+
```bash
274+
source ${HOME?}/.bashrc
275+
```
276+
277+
Now run the `pgo version` command:
264278

265279
```shell
266280
pgo version

0 commit comments

Comments
 (0)