If you have not done so, please install PGO by following the quickstart.
As part of the installation, please be sure that you have done the following:
- Forked the Postgres Operator examples repository and cloned it to your host machine.
- Installed PGO to the
postgres-operatornamespace. If you are inside your
postgres-operator-examplesdirectory, you can run the
kubectl apply --server-side -k kustomize/install/defaultcommand.
Note if you are using this guide in conjunction with images from the Crunchy Data Customer Portal, please follow the private registries guide for additional setup instructions.
Throughout this tutorial, we will be building on the example provided in the
When referring to a nested object within a YAML manifest, we will be using the
. format similar to
kubectl explain. For example, if we want to refer to the deepest element in this yaml file:
spec: hippos: appetite: huge
we would say
kubectl explain is your friend. You can use
kubectl explain postgrescluster to introspect the
postgrescluster.postgres-operator.crunchydata.com custom resource definition. You can also review the CRD reference.
With PGO, the Postgres Operator installed, let’s go and create a Postgres cluster!