This topic provides steps to install the VMware Postgres Operator using a quick-start script.
The script will deploy the VMware 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 VMware Postgres 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 VMware Postgres Operator 2.2.1 run the following command:
./operator-install-script.bash v2.2.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