Skip to content

Commit db1bfff

Browse files
author
jmccormick2001
committed
Merge branch 'develop' of github.com:crunchydata/postgres-operator into develop
2 parents 363c690 + 3f6bcf3 commit db1bfff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2009
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ The Operator deploys on Kubernetes and Openshift clusters. Some form of storage
2525

2626
The Operator includes various components that get deployed to your
2727
Kubernetes cluster as shown in the following diagram and detailed
28-
in the [Design](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/design/).
28+
in the [Design](https://crunchydata.github.io/postgres-operator/stable/design/).
2929

30-
![Reference](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/Operator-Architecture.png)
30+
![Reference](https://crunchydata.github.io/postgres-operator/stable/Operator-Architecture.png)
3131

3232
The Operator is developed and tested on CentOS and RHEL linux platforms but is known to run on other Linux variants.
3333

3434
## Documentation
3535
The following documentation is provided:
3636

37-
- [pgo CLI Syntax and Examples](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/operator-cli/)
38-
- [Installation](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/installation/)
39-
- [Configuration](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/configuration/configuration/)
40-
- [pgo.yaml Description](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/configuration/pgo-yaml-configuration/)
41-
- [Security](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/security/)
42-
- [Design Overview](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/design/)
43-
- [Developing](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/developer-setup/)
44-
- [Upgrading the Operator](https://access.crunchydata.com/documentation/postgres-operator/3.5.0/upgrade/)
37+
- [pgo CLI Syntax and Examples](https://crunchydata.github.io/postgres-operator/stable/operator-cli/)
38+
- [Installation](https://crunchydata.github.io/postgres-operator/stable/installation/)
39+
- [Configuration](https://crunchydata.github.io/postgres-operator/stable/configuration/configuration/)
40+
- [pgo.yaml Description](https://crunchydata.github.io/postgres-operator/stable/configuration/pgo-yaml-configuration/)
41+
- [Security](https://crunchydata.github.io/postgres-operator/stable/security/)
42+
- [Design Overview](https://crunchydata.github.io/postgres-operator/stable/design/)
43+
- [Developing](https://crunchydata.github.io/postgres-operator/stable/developer-setup/)
44+
- [Upgrading the Operator](https://crunchydata.github.io/postgres-operator/stable/upgrade/)

hugo/content/Installation/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Environment variables control aspects of the Operator installation. You can cop
4141

4242
For various scripts used by the Operator, the *expenv* utility is required, download
4343
this utility from the Github Releases page, and place it into your PATH (e.g. $HOME/odev/bin).
44+
{{% notice tip %}}There is also a Makefile target that includes is *expenv* and several other dependencies that are only needed if you plan on building from source:
45+
46+
make setup
47+
{{% /notice %}}
4448

4549
In this example set of environment variables, the CO_NAMESPACE environment variable is set to *demo* as an example namespace in which the Operator will be deployed. See the Design section of documentation on the Operator namespace requirements.
4650

hugo/content/cli/pgo.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: "pgo"
3+
---
4+
## pgo
5+
6+
The pgo command line interface.
7+
8+
### Synopsis
9+
10+
The pgo command line interface lets you create and manage PostgreSQL clusters.
11+
12+
### Options
13+
14+
```
15+
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
16+
--debug Enable debugging when true.
17+
-h, --help help for pgo
18+
--namespace string The namespace to use for pgo requests.
19+
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
20+
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
21+
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
22+
```
23+
24+
### SEE ALSO
25+
26+
* [pgo apply](/commands/pgo_apply/) - Apply a policy
27+
* [pgo backup](/commands/pgo_backup/) - Perform a Backup
28+
* [pgo create](/commands/pgo_create/) - Create a Cluster, PGBouncer, PGPool, Policy, Schedule, or User
29+
* [pgo delete](/commands/pgo_delete/) - Delete a backup, cluster, pgbouncer, pgpool, label, policy, upgrade, or user
30+
* [pgo df](/commands/pgo_df/) - Display disk space for clusters
31+
* [pgo failover](/commands/pgo_failover/) - Performs a manual failover
32+
* [pgo label](/commands/pgo_label/) - Label a set of clusters
33+
* [pgo load](/commands/pgo_load/) - Perform a data load
34+
* [pgo reload](/commands/pgo_reload/) - Perform a cluster reload
35+
* [pgo restore](/commands/pgo_restore/) - Perform a restore from previous backup
36+
* [pgo scale](/commands/pgo_scale/) - Scale a PostgreSQL cluster
37+
* [pgo scaledown](/commands/pgo_scaledown/) - Scale down a PostgreSQL cluster
38+
* [pgo show](/commands/pgo_show/) - Show the description of a cluster
39+
* [pgo status](/commands/pgo_status/) - Display PostgreSQL cluster status
40+
* [pgo test](/commands/pgo_test/) - Test cluster connectivity
41+
* [pgo update](/commands/pgo_update/) - Update a cluster
42+
* [pgo upgrade](/commands/pgo_upgrade/) - Perform an upgrade
43+
* [pgo user](/commands/pgo_user/) - Manage PostgreSQL users
44+
* [pgo version](/commands/pgo_version/) - Print version information for the PostgreSQL Operator
45+
46+
###### Auto generated by spf13/cobra on 21-Feb-2019

hugo/content/cli/pgo_apply.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "pgo_apply"
3+
---
4+
## pgo apply
5+
6+
Apply a policy
7+
8+
### Synopsis
9+
10+
APPLY allows you to apply a Policy to a set of clusters. For example:
11+
12+
pgo apply mypolicy1 --selector=name=mycluster
13+
pgo apply mypolicy1 --selector=someotherpolicy
14+
pgo apply mypolicy1 --selector=someotherpolicy --dry-run
15+
16+
```
17+
pgo apply [flags]
18+
```
19+
20+
### Options
21+
22+
```
23+
--dry-run Shows the clusters that the label would be applied to, without labelling them.
24+
-h, --help help for apply
25+
-s, --selector string The selector to use for cluster filtering.
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
32+
--debug Enable debugging when true.
33+
--namespace string The namespace to use for pgo requests.
34+
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
35+
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
36+
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
37+
```
38+
39+
### SEE ALSO
40+
41+
* [pgo](/commands/pgo/) - The pgo command line interface.
42+
43+
###### Auto generated by spf13/cobra on 21-Feb-2019

hugo/content/cli/pgo_backup.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "pgo_backup"
3+
---
4+
## pgo backup
5+
6+
Perform a Backup
7+
8+
### Synopsis
9+
10+
BACKUP performs a Backup, for example:
11+
12+
pgo backup mycluster
13+
14+
```
15+
pgo backup [flags]
16+
```
17+
18+
### Options
19+
20+
```
21+
--backup-opts string The pgbackup options to pass into pgbasebackup or pgbackrest.
22+
--backup-type string The backup type to perform. Default is pgbasebackup. Valid backup types are pgbasebackup, pgbackrest and pgdump.
23+
-h, --help help for backup
24+
--pvc-name string The PVC name to use for the backup instead of the default.
25+
-s, --selector string The selector to use for cluster filtering.
26+
--storage-config string The name of a Storage config in pgo.yaml to use for the cluster storage. Only applies to pgbasebackup backups.
27+
```
28+
29+
### Options inherited from parent commands
30+
31+
```
32+
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
33+
--debug Enable debugging when true.
34+
--namespace string The namespace to use for pgo requests.
35+
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
36+
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
37+
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
38+
```
39+
40+
### SEE ALSO
41+
42+
* [pgo](/commands/pgo/) - The pgo command line interface.
43+
44+
###### Auto generated by spf13/cobra on 21-Feb-2019

hugo/content/cli/pgo_clidoc.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "pgo_clidoc"
3+
---
4+
## pgo clidoc
5+
6+
Generate Markdown of CLI commandes
7+
8+
### Synopsis
9+
10+
The clidoc command allows you to generate markdown files for all CLI commands:
11+
12+
pgo clidoc
13+
14+
```
15+
pgo clidoc [flags]
16+
```
17+
18+
### Options
19+
20+
```
21+
-h, --help help for clidoc
22+
```
23+
24+
### Options inherited from parent commands
25+
26+
```
27+
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
28+
--debug Enable debugging when true.
29+
--namespace string The namespace to use for pgo requests.
30+
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
31+
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
32+
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
33+
```
34+
35+
### SEE ALSO
36+
37+
* [pgo](/commands/pgo/) - The pgo command line interface.
38+
39+
###### Auto generated by spf13/cobra on 21-Feb-2019

hugo/content/cli/pgo_create.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: "pgo_create"
3+
---
4+
## pgo create
5+
6+
Create a Cluster, PGBouncer, PGPool, Policy, Schedule, or User
7+
8+
### Synopsis
9+
10+
CREATE allows you to create a new Cluster, PGBouncer, PGPool, Policy, Schedule or User. For example:
11+
12+
pgo create cluster
13+
pgo create pgbouncer
14+
pgo create pgpool
15+
pgo create policy
16+
pgo create user
17+
18+
```
19+
pgo create [flags]
20+
```
21+
22+
### Options
23+
24+
```
25+
-h, --help help for create
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
32+
--debug Enable debugging when true.
33+
--namespace string The namespace to use for pgo requests.
34+
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
35+
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
36+
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
37+
```
38+
39+
### SEE ALSO
40+
41+
* [pgo](/commands/pgo/) - The pgo command line interface.
42+
* [pgo create cluster](/commands/pgo_create_cluster/) - Create a PostgreSQL cluster
43+
* [pgo create pgbouncer](/commands/pgo_create_pgbouncer/) - Create a pgbouncer
44+
* [pgo create pgpool](/commands/pgo_create_pgpool/) - Create a pgpool
45+
* [pgo create policy](/commands/pgo_create_policy/) - Create a SQL policy
46+
* [pgo create schedule](/commands/pgo_create_schedule/) - Create a cron-like scheduled task
47+
* [pgo create user](/commands/pgo_create_user/) - Create a PostgreSQL user
48+
49+
###### Auto generated by spf13/cobra on 21-Feb-2019
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "pgo_create_pgbouncer"
3+
---
4+
## pgo create pgbouncer
5+
6+
Create a pgbouncer
7+
8+
### Synopsis
9+
10+
Create a pgbouncer. For example:
11+
12+
pgo create pgbouncer mycluster
13+
14+
```
15+
pgo create pgbouncer [flags]
16+
```
17+
18+
### Options
19+
20+
```
21+
-h, --help help for pgbouncer
22+
```
23+
24+
### Options inherited from parent commands
25+
26+
```
27+
--apiserver-url string The URL for the PostgreSQL Operator apiserver.
28+
--debug Enable debugging when true.
29+
--namespace string The namespace to use for pgo requests.
30+
--pgo-ca-cert string The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
31+
--pgo-client-cert string The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
32+
--pgo-client-key string The Client Key file path for authenticating to the PostgreSQL Operator apiserver.
33+
```
34+
35+
### SEE ALSO
36+
37+
* [pgo create](/commands/pgo_create/) - Create a Cluster, PGBouncer, PGPool, Policy, Schedule, or User
38+
39+
###### Auto generated by spf13/cobra on 21-Feb-2019

0 commit comments

Comments
 (0)