create postgres cluster error
Hi : I use the code to create postgres cluster,step by step to do,but i get this error: error: a container name must be specified for pod hippo-repo-host-0, choose one of: [pgbackrest pgbackrest-config] or one of the init containers: [pgbackrest-log-dir nss-wrapper-init]
The command from here: https://access.crunchydata.com/documentation/postgres-operator/5.1.0/quickstart/
facing the same issue
kc logs -n crunchydbs sageservices-instance1-nffl-0 pgbackrest
ERROR: [048]: invalid command 'server'
Above is the error from pgbackrest
facing the same issue
kc logs -n crunchydbs sageservices-instance1-nffl-0 pgbackrest
ERROR: [048]: invalid command 'server'Above is the error from pgbackrest
you can change image version to ibd
ref : https://access.crunchydata.com/documentation/postgres-operator/5.1.0/tutorial/create-cluster/
this solved my problem.
I'm not entirely sure what the issue is here:
a) @killerwzb You say you got an error from using a command on this docs page, but it's unclear which command that is. I will add that the response you report is:
error: a container name must be specified for pod hippo-repo-host-0, choose one of: [pgbackrest pgbackrest-config] or one of the init containers: [pgbackrest-log-dir nss-wrapper-init]
And that looks like a kubectl response, not a problem with the postgres-operator.
b) @dharmendrakariya As for this pgbackrest error, I think this might come from running a version of pgbackrest that is not compatible with the version of the operator; I believe the server command was added to pgbackrest 2.37, so if you were using a version prior to that, that would be the error I would expect.
I'm closing this for now, but if you're still experiencing errors that relate to the examples, feel free to open; if you are experiencing errors that seem like bugs in the operator, please open at https://github.com/CrunchyData/postgres-operator