Getting Started
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-operator
namespace. If you are inside yourpostgres-operator-examples
directory, you can run thekubectl apply -k kustomize/install
command.
Throughout this tutorial, we will be building on the example provided in the kustomize/postgres
.
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 spec.hippos.appetite
.
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!