Skip to content

Commit 604ed6e

Browse files
author
jmccormick2001
committed
update docs
1 parent 90c456b commit 604ed6e

File tree

7 files changed

+52
-31
lines changed

7 files changed

+52
-31
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ 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](./docs/github/design.md).
28+
in the [Design](https://crunchydata.github.io/postgres-operator/latest/design/).
2929

30-
![Reference](./docs/github/images/Operator-Architecture.png)
30+
![Reference](https://crunchydata.github.io/postgres-operator/latest/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](./docs/github/pgo-cli.md)
38-
- [Installation](./docs/github/installation.md)
39-
- [Configuration](./docs/github/configuration.md)
40-
- [pgo.yaml Description](./docs/github/pgo-yaml-configuration.md)
41-
- [Security](./docs/github/security.md)
42-
- [Design Overview](./docs/github/design.md)
43-
- [Developing](./docs/github/developing.md)
44-
- [Upgrading the Operator](./docs/github/upgrading.md)
37+
- [pgo CLI Syntax and Examples](https://crunchydata.github.io/postgres-operator/latest/operator-cli/)
38+
- [Installation](https://crunchydata.github.io/postgres-operator/latest/installation/)
39+
- [Configuration](https://crunchydata.github.io/postgres-operator/latest/configuration/configuration/)
40+
- [pgo.yaml Description](https://crunchydata.github.io/postgres-operator/latest/configuration/pgo-yaml-configuration/)
41+
- [Security](https://crunchydata.github.io/postgres-operator/latest/security/)
42+
- [Design Overview](https://crunchydata.github.io/postgres-operator/latest/design/)
43+
- [Developing](https://crunchydata.github.io/postgres-operator/latest/developer-setup/)
44+
- [Upgrading the Operator](https://crunchydata.github.io/postgres-operator/latest/upgrade/)
4545

hugo/content/Configuration/pgo-yaml-configuration.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ The *pgo.yaml* file is broken into major sections as described below:
1717
|BasicAuth | if set to *true* will enable Basic Authentication
1818
|PrimaryNodeLabel |newly created primary deployments will specify this node label if specified, unless you override it using the --node-label command line flag, if not set, no node label is specifed
1919
|ReplicaNodeLabel |newly created replica deployments will specify this node label if specified, unless you override it using the --node-label command line flag, if not set, no node label is specifed
20-
|CCPImageTag |newly created containers will be based on this image version (e.g. centos7-10.4-1.8.3), unless you override it using the --ccp-image-tag command line flag
20+
|CCPImagePrefix |newly created containers will be based on this image prefix (e.g. crunchydata), update this if you require a custom image prefix
21+
|CCPImageTag |newly created containers will be based on this image version (e.g. centos7-11.1-2.3.0), unless you override it using the --ccp-image-tag command line flag
2122
|Port | the PostgreSQL port to use for new containers (e.g. 5432)
22-
|LogStatement | postgresql.conf log_statement value (required field) (works with crunchy-postgres >= 2.2.0)
23-
|LogMinDurationStatement | postgresql.conf log_min_duration_statement value (required field) (works with crunchy-postgres >= 2.2.0)
23+
|LogStatement | postgresql.conf log_statement value (required field)
24+
|LogMinDurationStatement | postgresql.conf log_min_duration_statement value (required field)
2425
|User | the PostgreSQL normal user name
2526
|Strategy | sets the deployment strategy to be used for deploying a cluster, currently there is only strategy *1*
26-
|Replicas | the number of cluster replicas to create for newly created clusters
27+
|Replicas | the number of cluster replicas to create for newly created clusters, typically users will scale up replicas on the pgo CLI command line but this global value can be set as well
2728
|PgmonitorPassword | the password to use for pgmonitor metrics collection if you specify --metrics when creating a PG cluster
2829
|Metrics | boolean, if set to true will cause each new cluster to include crunchy-collect as a sidecar container for metrics collection, if set to false (default), users can still add metrics on a cluster-by-cluster basis using the pgo command flag --metrics
2930
|Badger | boolean, if set to true will cause each new cluster to include crunchy-pgbadger as a sidecar container for static log analysis, if set to false (default), users can still add pgbadger on a cluster-by-cluster basis using the pgo create cluster command flag --pgbadger
@@ -34,6 +35,7 @@ The *pgo.yaml* file is broken into major sections as described below:
3435
|ArchiveTimeout | optional, if set, will determine the archive timeout setting used when ArchiveMode is true, defaults to 60 seconds
3536
|ServiceType | optional, if set, will determine the service type used when creating primary or replica services, defaults to ClusterIP if not set, can be overridden by the user on the command line as well
3637
|Backrest | optional, if set, will cause clusters to have the pgbackrest volume PVC provisioned during cluster creation
38+
|BackrestPort | currently required to be port 2022
3739
|Autofail | optional, if set, will cause clusters to be checked for auto failover in the event of a non-Ready status
3840
|AutofailReplaceReplica | optional, default is false, if set, will determine whether a replica is created as part of a failover to replace the promoted replica, the AutofailReplaceReplica setting in *pgo.yaml* is overrode with this command line flag if specified by a user.
3941

@@ -45,6 +47,7 @@ The *pgo.yaml* file is broken into major sections as described below:
4547
|BackupStorage |required, the value of the storage configuration to use for backups, including the storage for pgbackrest repo volumes
4648
|ReplicaStorage |required, the value of the storage configuration to use for the replica PostgreSQL deployments
4749
|ReplicaStorage |required, the value of the storage configuration to use for the replica PostgreSQL deployments
50+
|BackrestStorage |required, the value of the storage configuration to use for the pgbackrest shared repository deployment created when a user specifies pgbackrest to be enabled on a cluster
4851
|StorageClass |for a dynamic storage type, you can specify the storage class used for storage provisioning(e.g. standard, gold, fast)
4952
|AccessMode |the access mode for new PVCs (e.g. ReadWriteMany, ReadWriteOnce, ReadOnlyMany). See below for descriptions of these.
5053
|Size |the size to use when creating new PVCs (e.g. 100M, 1Gi)

hugo/content/Installation/_index.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ A full installation of the Operator includes the following steps:
1414
- deploy the operator
1515
- install pgo CLI (end user command tool)
1616

17-
Operator end-users are only required to install the pgo CLI client on their host and can skip the server-side installation steps.
17+
Operator end-users are only required to install the pgo CLI client on their host and can skip the server-side installation steps. pgo CLI clients are provided
18+
on the Github Releases page for Linux, Mac, and Windows clients.
1819

19-
The Operator can also be deployed with a sample Helm chart and also a *quickstart* script. Those installation methods don't provide the same level of customization that the installation provides but are alternatives. Crunchy also provides an Ansible playbook for Crunchy customers.
20+
The Operator can also be deployed with a sample Helm chart and also a *quickstart* script. Those installation methods don't provide the same level of customization that the installation provides but are alternatives. Crunchy also provides an Ansible playbook for Crunchy customers.
2021

2122
See below for details on the Helm and quickstart installation methods.
2223

@@ -38,7 +39,9 @@ Environment variables control aspects of the Operator installation. You can cop
3839
cat $HOME/odev/src/github.com/crunchydata/postgres-operator/examples/envs.sh >> $HOME/.bashrc
3940
source $HOME/.bashrc
4041

41-
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. Adjust to suit your needs. There is a Makefile target you can run to create the *demo* namespace if you want:
42+
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.
43+
44+
Adjust the namespace value to suit your needs. There is a Makefile target you can run to create the *demo* namespace if you want:
4245

4346
make setupnamespace
4447

@@ -94,6 +97,10 @@ you wanted to use HostPath for testing:
9497
./pv/create-pv.sh
9598
```
9699

100+
Adjust the above PV creation scripts to suit your local requirements, the purpose
101+
of these scripts are solely to produce a test set of Volume to test the
102+
Operator.
103+
97104
Other settings in *pgo.yaml* are described in the [pgo.yaml Configuration](/configuration/pgo-yaml-configuration) section of the documentation.
98105

99106
## Operator Security
@@ -132,14 +139,16 @@ At this point, you as a normal Kubernetes user should be able to deploy the Oper
132139

133140
This will cause any existing Operator to be removed first, then the configuration to be bundled into a ConfigMap, then the Operator Deployment to be created.
134141

135-
This will create a postgres-operator Deployment along with a crunchy-scheduler Deployment, and a postgres-operator Service.
142+
This will create a postgres-operator Deployment along with a crunchy-scheduler Deployment, and a postgres-operator Service. So, Operator administrators needing
143+
to make changes to the Operator configuration would run this make target
144+
to pick up any changes to pgo.yaml or the Operator templates.
136145

137146

138147
## pgo CLI Installation
139148
Most users will work with the Operator using the *pgo* CLI tool. That tool is downloaded from the GitHub Releases page for the Operator (https://github.com/crunchydata/postgres-operator/releases).
140149

141150
The *pgo* client is provided in Mac, Windows, and Linux binary formats, download the appropriate client to your local laptop or workstation to work with a remote Operator.
142-
Prior to using *pgo*, users will need to specify the
151+
Prior to using *pgo*, users testing the Operator on a single host can specify the
143152
*postgres-operator* URL as follows:
144153

145154
```

hugo/content/Operator CLI/_index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ And *name* is the name of the resource type like:
3232
- somesqlpolicy
3333
- john
3434

35+
To get detailed help information and command flag descriptions on each *pgo* command, enter:
36+
37+
pgo [command] -h
38+
3539
## Operations
3640

3741
The following table shows the *pgo* operations currently implemented:
@@ -268,8 +272,8 @@ against the target cluster prior to creating this schedule.
268272
#### Create a Cluster with LoadBalancer ServiceType
269273

270274
pgo create cluster mycluster --service-type=LoadBalancer
271-
## Flags
272-
*pgo* command flags include:
275+
## pgo Global Flags
276+
*pgo* global command flags include:
273277

274278
| Flag | Description |
275279
|:--|:--|

hugo/content/Security/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,7 @@ This will recreate the *pgo-auth-secret* Secret that stores these files and is m
119119
The Operator REST API is secured with keys stored in the *pgo-auth-secret* Secret. Adjust the default keys to meet your security requirements using your own keys. The *pgo-auth-secret* Secret is created when you run:
120120

121121
make deployoperator
122+
123+
The keys are generated when the RBAC script is executed by the cluster admin:
124+
125+
make installrbac

hugo/content/Upgrade/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ removes the ingest related API endpoints.
2828
* The pgo.yaml adds the PreferredFailoverNode setting. This is a Kubernetes selector string (e.g. key=value). This value if set, will cause fail-over targets to be preferred based on the node they run on if that node is in the set of *preferred*.
2929
* The ability to select nodes based on a selector string was added. For this to feature to be used, multiple replicas have to be in a ready state, and also at the same replication status. If those conditions are not met, the default fail-over target selection is used.
3030
* The pgo.yaml file now includes a new storage configuration, XlogStorage, which when set will cause the xlog volume to be allocated using this storage configuration. If not set, the PrimaryStorage configuration will be used.
31+
* The pgo.yaml file now includes a new storage configuration, BackrestStorage, will cause the pgbackrest shared repository volume to be allocated using this storage configuration.
3132
* The pgo.yaml file now includes a setting, AutofailReplaceReplica, which will enable or disable whether a new replica is created as part of a fail-over. This is turned off by default.
3233

3334
See the GitHub Release notes for the features and other notes about a specific release.

hugo/content/_index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ The Operator deploys on Kubernetes and OpenShift clusters. Some form of storage
3030

3131
The Operator includes various components that get deployed to your
3232
Kubernetes cluster as shown in the following diagram and detailed
33-
in the [Design](/design/design).
33+
in the [Design](/design).
3434

3535
![Architecture](/Operator-Architecture.png)
3636

37-
The Operator is developed and tested on CentOS and RHEL linux platforms but is known to run on other Linux variants.
37+
The Operator is developed and tested on CentOS and RHEL Linux platforms but is known to run on other Linux variants.
3838

3939
## Documentation
4040
The following documentation is provided:
4141

42-
- [pgo CLI Syntax and Examples](/cli-and-example/pgo-cli)
43-
- [Installation](/installation/installation)
44-
- [Configuration](/configuration/configuration)
42+
- [pgo CLI Syntax and Examples](/operator-cli)
43+
- [Installation](/installation)
44+
- [Configuration](/configuration)
4545
- [pgo.yaml Configuration](/configuration/pgo-yaml-configuration)
46-
- [Security](/security/security)
47-
- [Design Overview](/design/design)
48-
- [Developing](/develop/developing)
49-
- [Upgrading the Operator](/upgrade/upgrading)
50-
- [Contributing](/contributing)
46+
- [Security](/security)
47+
- [Design Overview](/design)
48+
- [Developing](/develop)
49+
- [Upgrading the Operator](/upgrade)
50+
- [Contributing](/contributing/documentation-updates)
5151

0 commit comments

Comments
 (0)