pgo create cluster

pgo create cluster

Create a PostgreSQL cluster

Synopsis

Create a PostgreSQL cluster consisting of a primary and a number of replica backends. For example:

pgo create cluster mycluster
pgo create cluster [flags]

Options

      --ccp-image string                  The CCPImage name to use for cluster creation. If specified, overrides the value crunchy-postgres.
  -c, --ccp-image-tag string              The CCPImageTag to use for cluster creation. If specified, overrides the pgo.yaml setting.
      --custom-config string              The name of a configMap that holds custom PostgreSQL configuration files used to override defaults.
      --disable-autofail                  Disables autofail capabitilies in the cluster following cluster initialization.
  -h, --help                              help for cluster
  -l, --labels string                     The labels to apply to this cluster.
      --metrics                           Adds the crunchy-collect container to the database pod.
      --node-label string                 The node label (key=value) to use in placing the primary database. If not set, any node is used.
  -w, --password string                   The password to use for initial database users.
      --pgbackrest-s3-bucket string       The AWS S3 bucket that should be utilized for the cluster when the "s3" storage type is enabled for pgBackRest.
      --pgbackrest-s3-endpoint string     The AWS S3 endpoint that should be utilized for the cluster when the "s3" storage type is enabled for pgBackRest.
      --pgbackrest-s3-key string          The AWS S3 key that should be utilized for the cluster when the "s3" storage type is enabled for pgBackRest.
      --pgbackrest-s3-key-secret string   The AWS S3 key secret that should be utilized for the cluster when the "s3" storage type is enabled for pgBackRest.
      --pgbackrest-s3-region string       The AWS S3 region that should be utilized for the cluster when the "s3" storage type is enabled for pgBackRest.
      --pgbackrest-storage-type string    The type of storage to use with pgBackRest. Either "local", "s3" or both, comma separated. (default "local")
      --pgbadger                          Adds the crunchy-pgbadger container to the database pod.
      --pgbouncer                         Adds a crunchy-pgbouncer deployment to the cluster.
      --pgbouncer-pass string             Password for the pgbouncer user of the crunchy-pgboucer deployment.
      --pod-anti-affinity string          Specifies the type of anti-affinity that should be utilized when applying  default pod anti-affinity rules to PG clusters (default "preferred")
  -z, --policies string                   The policies to apply when creating a cluster, comma separated.
      --replica-count int                 The number of replicas to create as part of the cluster.
      --replica-storage-config string     The name of a Storage config in pgo.yaml to use for the cluster replica storage.
  -r, --resources-config string           The name of a container resource configuration in pgo.yaml that holds CPU and memory requests and limits.
  -s, --secret-from string                The cluster name to use when restoring secrets.
  -e, --series int                        The number of clusters to create in a series. (default 1)
      --service-type string               The Service type to use for the PostgreSQL cluster. If not set, the pgo.yaml default will be used.
      --storage-config string             The name of a Storage config in pgo.yaml to use for the cluster storage.
      --sync-replication                  Enables synchronous replication for the cluster.

Options inherited from parent commands

      --apiserver-url string     The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client.
      --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 create - Create a Postgres Operator resource
Auto generated by spf13/cobra on 31-Dec-2019