-
Notifications
You must be signed in to change notification settings - Fork 642
Description
** Which example are you working with? **
I'm deploying a postgres cluster using the custom resource manifests
What is the current behavior?
The current behavior is that I get a working pg cluster
What is the expected behavior?
I would like to be able to apply setup.sql to our cluster on start-up using the custom resources, our setup does not allow for using the pgo tool.
Other information (e.g. detailed explanation, related issues, etc)
Basically, I want to be able to do the things described on this page:
https://access.crunchydata.com/documentation/postgres-operator/4.4.1/advanced/custom-configuration/
using the process described on this page:
https://access.crunchydata.com/documentation/postgres-operator/4.4.1/custom-resources/
It looks like I should be able to do this using the CustomConfig section of the pgcluster crd but I'm not sure what that configmap needs to look like. I'm hoping I can keep digging and figure it out, at which point I'll comment the solution on this issue but if anyone knows of some docs I may have missed that would be awesome. Thank you and I apologize if I didn't describe this issue fully enough.
Please tell us about your environment:
- Operating System:
Centos 7 - Where is this running ( Local , Cloud Provider)
Cloud - Storage being used (NFS, Hostpath, Gluster, etc):
Rook-Ceph - Container Image Tag:
crunchy-postgres-ha:centos7-11.9-4.4.1 - PostgreSQL Version:
11.9 - Platform (Docker, Kubernetes, OpenShift):
Kubernetes - Platform Version:
1.17.7
If possible please run the following on the kubernetes or OpenShift (oc) commands and provide the result:
kubectl describe yourPodName
kubectl describe pvc
kubectl get nodes
kubectl log yourPodName