|
| 1 | +--- |
| 2 | +title: "pgo_create_cluster" |
| 3 | +--- |
| 4 | +## pgo create cluster |
| 5 | + |
| 6 | +Create a PostgreSQL cluster |
| 7 | + |
| 8 | +### Synopsis |
| 9 | + |
| 10 | +Create a PostgreSQL cluster consisting of a primary and a number of replica backends. For example: |
| 11 | + |
| 12 | + pgo create cluster mycluster |
| 13 | + |
| 14 | +``` |
| 15 | +pgo create cluster [flags] |
| 16 | +``` |
| 17 | + |
| 18 | +### Options |
| 19 | + |
| 20 | +``` |
| 21 | + --archive Enables archive logging for the database cluster. |
| 22 | + --autofail If set, will cause autofailover to be enabled on this cluster. |
| 23 | + -x, --backup-path string The backup archive path to restore from. |
| 24 | + -p, --backup-pvc string The backup archive PVC to restore from. |
| 25 | + --ccp-image string The CCPImage name to use for cluster creation. If specified, overrides the value crunchy-postgres. |
| 26 | + -c, --ccp-image-tag string The CCPImageTag to use for cluster creation. If specified, overrides the pgo.yaml setting. |
| 27 | + --custom-config string The name of a configMap that holds custom PostgreSQL configuration files used to override defaults. |
| 28 | + -h, --help help for cluster |
| 29 | + -l, --labels string The labels to apply to this cluster. |
| 30 | + --metrics Adds the crunchy-collect container to the database pod. |
| 31 | + --node-label string The node label (key=value) to use in placing the primary database. If not set, any node is used. |
| 32 | + -w, --password string The password to use for initial database users. |
| 33 | + --pgbackrest Enables a pgBackRest volume for the database pod. |
| 34 | + --pgbadger Adds the crunchy-pgbadger container to the database pod. |
| 35 | + --pgbouncer Adds a crunchy-pgbouncer deployment to the cluster. |
| 36 | + --pgpool Adds the crunchy-pgpool container to the database pod. |
| 37 | + --pgpool-secret string The name of a pgpool secret to use for the pgpool configuration. |
| 38 | + -z, --policies string The policies to apply when creating a cluster, comma separated. |
| 39 | + --replica-count int The number of replicas to create as part of the cluster. |
| 40 | + --replica-storage-config string The name of a Storage config in pgo.yaml to use for the cluster replica storage. |
| 41 | + -r, --resources-config string The name of a container resource configuration in pgo.yaml that holds CPU and memory requests and limits. |
| 42 | + -s, --secret-from string The cluster name to use when restoring secrets. |
| 43 | + -e, --series int The number of clusters to create in a series. (default 1) |
| 44 | + --service-type string The Service type to use for the PostgreSQL cluster. If not set, the pgo.yaml default will be used. |
| 45 | + --storage-config string The name of a Storage config in pgo.yaml to use for the cluster storage. |
| 46 | +``` |
| 47 | + |
| 48 | +### Options inherited from parent commands |
| 49 | + |
| 50 | +``` |
| 51 | + --apiserver-url string The URL for the PostgreSQL Operator apiserver. |
| 52 | + --debug Enable debugging when true. |
| 53 | + --namespace string The namespace to use for pgo requests. |
| 54 | + --pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver. |
| 55 | + --pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver. |
| 56 | + --pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver. |
| 57 | +``` |
| 58 | + |
| 59 | +### SEE ALSO |
| 60 | + |
| 61 | +* [pgo create](/commands/pgo_create/) - Create a Cluster, PGBouncer, PGPool, Policy, Schedule, or User |
| 62 | + |
| 63 | +###### Auto generated by spf13/cobra on 21-Feb-2019 |
0 commit comments