pgo failover
pgo failover
Performs a manual failover
Synopsis
Performs a manual failover. For example:
# have the operator select the best target candidate
pgo failover hippo
# get a list of target candidates
pgo failover hippo --query
# failover to a specific target candidate
pgo failover hippo --target=hippo-abcd
pgo failover [flags]
Options
--force Force the failover to occur, regardless of the health of the target instance. Must be used with "--target".
-h, --help help for failover
--no-prompt No command line confirmation.
--query Prints the list of failover candidates.
--target string The replica target which the failover will occur on.
Options inherited from parent commands
--apiserver-url string The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client. Note that the URL should **not** end in a '/'.
--debug Enable additional output for debugging.
--disable-tls Disable TLS authentication to the Postgres Operator.
--exclude-os-trust Exclude CA certs from OS default trust store
-n, --namespace string The namespace to use for pgo requests.
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
SEE ALSO
- pgo - The pgo command line interface.