pgo restart

pgo restart

Restarts the PostgrSQL database within a PostgreSQL cluster

Synopsis

Restarts one or more PostgreSQL databases within a PostgreSQL cluster.

For example, to restart the primary and all replicas:
pgo restart mycluster

To restart the primary and all replicas using a rolling update strategy:
pgo restart mycluster --rolling

Or target a specific instance within the cluster:
pgo restart mycluster --target=mycluster-abcd

And use the 'query' flag obtain a list of all instances within the cluster:
pgo restart mycluster --query
pgo restart [flags]

Options

  -h, --help                 help for restart
      --no-prompt            No command line confirmation.
  -o, --output string        The output format. Supported types are: "json"
      --query                Prints the list of instances that can be restarted.
      --rolling              Performs a rolling restart. Cannot be used with other flags.
      --target stringArray   The instance that will be restarted.

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.
Auto generated by spf13/cobra on 14-Jan-2021