You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permissions are granted to the Operator by means of a
205
+
Permissions are granted to the Operator by means of a
199
206
Service Account called *postgres-operator*. That service
200
207
account is added to the Operator deployment.
201
208
@@ -233,14 +240,14 @@ To run the Operator on Openshift Container Platform note the following:
233
240
=== Configure Persistent Storage
234
241
235
242
The default Operator configuration is defined to use a HostPath
236
-
persistence configuration.
243
+
persistence configuration.
237
244
238
245
There are example scripts provided that will create PV and PVC resources
239
-
that can be used in your testing.
246
+
that can be used in your testing.
240
247
241
-
These example scripts can create sample HostPath and NFS volumes.
248
+
These example scripts can create sample HostPath and NFS volumes.
242
249
243
-
To create sample HostPath Persistent Volumes and CLaims use the following scripts:
250
+
To create sample HostPath Persistent Volumes and Claims use the following scripts:
244
251
....
245
252
cd $COROOT/pv
246
253
./create-pv.sh
@@ -274,7 +281,7 @@ username:password
274
281
testuser:testpass
275
282
....
276
283
277
-
Modify these values to be unique to your environment.
284
+
Modify these values to be unique to your environment.
278
285
279
286
If the username and password passed by clients to the *apiserver* do
280
287
not match, the REST call will fail and a log message will be produced
@@ -332,16 +339,17 @@ this value is set to *false* if you do not specify a value.
332
339
PostgreSQL passwords are defined in Secrets starting with release
333
340
2.5. When the *pgo-apiserver* starts, it will read the passwords
334
341
to be used for PostgresSQL clusters from the following Kube Secrets:
342
+
335
343
* pgo-postgres-user-pass
336
344
* pgo-primary-user-pass
337
345
* pgo-testuser-user-pass
338
346
339
347
The defaults for these Secrets are set in the *create-secrets.sh* script
340
-
which is executed during the postgres-operator deployment.
348
+
which is executed during the postgres-operator deployment.
341
349
342
350
=== Configuration
343
351
344
-
The *apiserver* uses the following configuration files found in $COROOT/conf/apiserver to determine how the Operator will provision PostgreSQL containers:
352
+
The *apiserver* uses the following configuration files found in $COROOT/conf/apiserver to determine how the Operator will provision PostgreSQL containers:
Note that the default *pgo.yaml* file assumes you are going to use *HostPath* Persistent Volumes for
352
360
your storage configuration. Adjust this file for NFS or other storage configurations.
353
361
354
-
Note that the *pgo.yaml* configuration file assumes your Kubernetes configuration file is located in */etc/kubernetes/admin.conf*. Update this kubeconfig
355
-
path to match your local Kubernetes configuration file location.
356
-
357
362
The version of PostgreSQL container the Operator will deploy is determined
358
-
by the *CCPImageTag* setting in the *$COROOT/conf/apiserver/pgo.yaml*
363
+
by the *CCPImageTag* setting in the *$COROOT/conf/apiserver/pgo.yaml*
359
364
configuration file. By default, this value is set to the latest
360
365
release of the Crunchy Container Suite.
361
366
@@ -402,9 +407,9 @@ Strategies for deploying the operator can be found in the link:design.asciidoc[P
402
407
403
408
=== Verify Installation
404
409
405
-
When you first run the operator, it will look for the presence of the
406
-
predefined custom resource definitions, and create them if not found.
407
-
The best way to verify a successful deployment of the Operator is by
410
+
When you first run the operator, it will look for the presence of the
411
+
predefined custom resource definitions, and create them if not found.
412
+
The best way to verify a successful deployment of the Operator is by
408
413
viewing these custom resource definitions:
409
414
410
415
....
@@ -425,7 +430,7 @@ name of the *postgres-operator* service or to the IP address of the
@@ -478,10 +483,10 @@ The following table describes the Makefile targets:
478
483
|all | compile all binaries and build all images
479
484
|setup | fetch the dependent packages required to build with
480
485
|deployoperator | deploy the Operator (apiserver and postgers-operator) to Kubernetes
481
-
|main | compile the postgres-operator
486
+
|main | compile the postgres-operator
482
487
|runmain | locally execute the postgres-operator
483
488
|pgo | build the pgo binary
484
-
|runpgo | run the pgo binary
489
+
|runpgo | run the pgo binary
485
490
|runapiserver | run the apiserver binary outside of Kube
486
491
|clean | remove binaries and compiled packages, restore dependencies
487
492
|operatorimage | compile and build the postgres-operator Docker image
@@ -566,9 +571,9 @@ Values in the pgo configuration file have the following meaning:
566
571
|Cluster.Strategy | sets the deployment strategy to be used for deploying a cluster, currently there is only strategy *1*
567
572
|Cluster.Replicas | the number of cluster replicas to create for newly created clusters
568
573
|Cluster.Policies | optional, list of policies to apply to a newly created cluster, comma separated, must be valid policies in the catalog
569
-
|Cluster.PasswordAgeDays | optional, if set, will set the VALID UNTIL date on passwords to this many days in the future when creating users or setting passwords, defaults to 365 days
574
+
|Cluster.PasswordAgeDays | optional, if set, will set the VALID UNTIL date on passwords to this many days in the future when creating users or setting passwords, defaults to 60 days
570
575
|Cluster.PasswordLength | optional, if set, will determine the password length used when creating passwords, defaults to 8
571
-
|PrimaryStorage |required, the value of the storage configuration to use for the primary PostgreSQL deployment
576
+
|PrimaryStorage |required, the value of the storage configuration to use for the primary PostgreSQL deployment
572
577
|BackupStorage |required, the value of the storage configuration to use for backups
573
578
|ReplicaStorage |required, the value of the storage configuration to use for the replica PostgreSQL deployments
574
579
|Storage.storage1.StorageClass |for a dynamic storage type, you can specify the storage class used for storage provisioning(e.g. standard, gold, fast)
0 commit comments