This topic provides steps to install the Tanzu Postgres Operator using a quick-start script.
The script will deploy the Tanzu Postgres Operator from the Tanzu Network Registry, in the postgres-operator
namespace.
Copy the script on your local machine, and rename it, for example operator-install-script.bash
.
Make this file executable using:
chmod +x operator-install-script.bash
Retrieve your Tanzu Network credentials that allow you to access the VMware Tanzu registry.
Choose the version of the Tanzu Operator you wish to install, and run the script using:
./operator-install-script.bash <POSTGRES_OPERATOR_VERSION> <TANZU_REGISTRY_USERNAME> <TANZU_REGISTRY_PASSWORD>
For example, to deploy a 1.9.1 Tanzu Postgres Operator run:
./operator-install-script.bash v1.9.1 <your-tanzu-registry-username> <your-tanzu-registry-password>
To watch the operator deployment, run a command similar to:
watch kubectl get all -n postgres-operator -l app=postgres-operator
After the Operator deployment, to create an instance refer to Deploying a Postgres Instance.
If you want to uninstall the operator, run the following commands:
helm uninstall postgres-operator --n postgres-operator
kubectl delete crds -l app=postgres-operator
kubectl delete namespace postgres-operator