9. Postgrescluster
A postgres cluster Helm chart for Graphistry on Kubernetes
9.1. Install Postgres Cluster
NOTE: This chart requires the Postgres Operator to be installed. See Postgres-operator for information on how to install the Postgres Operator.
git clone https://github.com/graphistry/graphistry-helm && cd graphistry-helm helm upgrade -i postgres-cluster ./charts/postgres-cluster --namespace graphistry --create-namespacehelm repo add graphistry-helm https://graphistry.github.io/graphistry-helm/ helm upgrade -i postgrescluster graphistry-helm/postgres-cluster --namespace graphistry --create-namespace
9.2. Configuring Postgres Cluster
After Cluster is deployed, find the pv that is created and add the following label to it. This will allow the cluster to bind the pv to the pod upon redeployment.
kubectl get pv -n graphistry && kubectl label pv <pv name for the postgres instance> pgo-postgres-cluster=graphistry-postgres
Change the postgres password if needed. The default password is randomly generated AlphaNumeric string.
kubectl patch secret -n postgres-operator postgres-pguser-graphistry -p '{"stringData":{"password":"<password>","verifier":""}}'
9.3. Configuration
The following table lists the configurable parameters of the Postgrescluster chart and their default values.
Parameter |
Description |
Default |
|---|---|---|
|
storage class provisioner |
|
|
multinode selector switch to determine if going multi/single node |
|
|
|
|
|
dev mode for debugging with nexus, postgres and nginx |
|
|
postgres repository name |
|
|
postgres db name |
|
|
postgres db user |
|
|
port for postgres service to listen on |
|
|
hostname for postgres |
|
|
tag for the docker image |
|
|
image pull policy could also be Always |
|
|
restart policy |
|
|
image pull secrets name |
|
|
node selector to determine which node to deploy cluster to |
|
|
|
|
|
|
|
|
postgres volume label |
|
|
|
|
|
|
For more information on the CrunchyData Postgres Cluster visit the PGO documentation: CrunchyData PGO Documentation