We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubegres needs to run the following command to fix up primaries after they've been promoted at the Kubernetes level:
NAMESPACE=... KUBEGRES_NAME=... KUBEGRES_SECRET_NAME=... kubectl -n $NAMESPACE exec -it $(kubectl -n $NAMESPACE get pod -l replicationRole=primary,app=$KUBEGRES_NAME -o=name) -- /bin/bash -c "PGPASSWORD=$(kubectl -n $NAMESPACE get secret $KUBEGRES_SECRET_NAME --template '{{.data.superUserPassword}}' | base64 --decode) /bin/psql -U postgres -c 'SELECT pg_promote();'"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Kubegres needs to run the following command to fix up primaries after they've been promoted at the Kubernetes level:
The text was updated successfully, but these errors were encountered: