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
The postgres-operator pod includes the apiserver which is a REST API that pgo
200
200
users are able to communicate with.
@@ -216,8 +216,6 @@ The version of PostgreSQL container the Operator will deploy is determined by th
216
216
setting in the `$COROOT/conf/apiserver/pgo.yaml` configuration file. By default, this value is
217
217
set to the latest release of the Crunchy Container Suite.
218
218
219
-
==== *pgo.yaml*
220
-
221
219
The default pgo.yaml configuration file, included in `$COROOT/conf/apiserver/pgo.yaml`,
222
220
looks like this -
223
221
@@ -365,7 +363,7 @@ for users to use as a starting configuration -
365
363
* `pgo.yaml.dynamic` - this configuration specifies *dynamic* storage to be used, namely a *storageclass* that refers to a dynamic provisioning strorage such as StorageOS or Portworx, or GCE.
366
364
367
365
Note, when Storage Type is *create*, you can specify a storage
368
-
configuration setting of *MatchLabels*, when set, this will cause a
366
+
configuration setting of *MatchLabels*, when set, this will cause a
369
367
*selector* of *name=clustername* to be added into the PVC, this will
370
368
let you target specific PV(s) to be matched for this cluster. Note, if a
371
369
PV does not match the claim request, then the cluster will not start. Users
@@ -441,7 +439,7 @@ automatically to your disaster recovery site thanks to network storage.
441
439
442
440
image::/Operator-DR-Storage.png[Operator Storage]
443
441
444
-
=== *postgres-operator* Container Configuration
442
+
=== PostgreSQL Operator Container Configuration
445
443
446
444
To enable *debug* level messages from the operator pod, set the `CRUNCHY_DEBUG` environment
447
445
variable to *true* within its deployment file `deployment.json`.
@@ -454,7 +452,7 @@ templates that are added into the operator deployment by means of a mounted volu
454
452
The templates are located in the `$COROOT/conf/postgres-operator` directory and are added into
455
453
a config map which is mounted by the operator deployment.
456
454
457
-
== bash Completion
455
+
== Bash Completion
458
456
459
457
There is a bash completion file that is included for users to try
460
458
located in the repository at `examples/pgo-bash-completion`. To use it -
One option with pgo is enabling the creation of a pgpool deployment in addition to the PostgreSQL cluster.
509
507
Running pgpool is a logical inclusion when the Kubernetes cluster includes both a primary database in addition
@@ -574,3 +572,80 @@ kubectl delete pod wed10-pgpool-6cc6f6598d-wcnmf
574
572
575
573
The pgpool deployment will spin up another pgpool which will pick up
576
574
the updated secret file.
575
+
576
+
== Storage Configuration
577
+
578
+
Most users after they try out the operator will want to create a more customized installation and deployment of the operator using specific storage types.
579
+
580
+
The operator will work with HostPath, NFS, Dynamic, and GKE Storage.
581
+
582
+
{{%expand "NFS" %}}
583
+
584
+
=== NFS
585
+
586
+
To configure the operator to use NFS for storage, a sample *pgo.yaml.nfs* file is provided. Overlay the default `pgo.yaml` file with that file -
Edit the *pgo.yaml* file to specify the NFS GID that is set for the NFS volume mount you will be using, the default value assumed is *nfsnobody* as the GID (65534). Update the value to meet your NFS security settings.
592
+
593
+
There is currently no script available to create your NFS Persistent Volumes but you can typically modify the `$COROOT/pv/create-pv.sh` script to work with NFS.
594
+
595
+
{{% /expand%}}
596
+
597
+
{{%expand "Dynamic" %}}
598
+
599
+
=== Dynamic
600
+
601
+
To configure the operator to use Dynamic Storage classes for storage, a sample *pgo.yaml.storageclass* file is provided. Overlay the default *pgo.yaml* file with that file -
Edit the *pgo.yaml* file to specify the storage class you will be using, the default value assumed is *standard* which is the name used by default within a GKE Kube cluster deployment. Update the value to match your storage classes.
607
+
608
+
Notice that the *FsGroup* setting is required for most block storage and is set to the value of *26* since the PostgreSQL container runs as UID *26*.
609
+
610
+
{{% /expand%}}
611
+
612
+
{{%expand "GKE" %}}
613
+
614
+
=== GKE
615
+
616
+
Some notes for setting up GKE for the Operator deployment.
617
+
618
+
==== Install Kubectl
619
+
620
+
On your host you will be working from, install the kubectl command -
Copy file name to clipboardExpand all lines: hugo/content/installation/deployment.adoc
+1-78Lines changed: 1 addition & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Deployment"
3
3
date: 2018-04-26T15:26:40-07:00
4
4
draft: false
5
-
weight: 40
5
+
weight: 50
6
6
---
7
7
8
8
:toc:
@@ -136,83 +136,6 @@ apiserver version 3.2
136
136
137
137
Operator commands are documented on the link:/getting-started/[Getting Started] page.
138
138
139
-
== Storage Configuration
140
-
141
-
Most users after they try out the operator will want to create a more customized installation and deployment of the operator using specific storage types.
142
-
143
-
The operator will work with HostPath, NFS, Dynamic, and GKE Storage.
144
-
145
-
{{%expand "NFS" %}}
146
-
147
-
=== NFS
148
-
149
-
To configure the operator to use NFS for storage, a sample *pgo.yaml.nfs* file is provided. Overlay the default `pgo.yaml` file with that file -
Edit the *pgo.yaml* file to specify the NFS GID that is set for the NFS volume mount you will be using, the default value assumed is *nfsnobody* as the GID (65534). Update the value to meet your NFS security settings.
155
-
156
-
There is currently no script available to create your NFS Persistent Volumes but you can typically modify the `$COROOT/pv/create-pv.sh` script to work with NFS.
157
-
158
-
{{% /expand%}}
159
-
160
-
{{%expand "Dynamic" %}}
161
-
162
-
=== Dynamic
163
-
164
-
To configure the operator to use Dynamic Storage classes for storage, a sample *pgo.yaml.storageclass* file is provided. Overlay the default *pgo.yaml* file with that file -
Edit the *pgo.yaml* file to specify the storage class you will be using, the default value assumed is *standard* which is the name used by default within a GKE Kube cluster deployment. Update the value to match your storage classes.
170
-
171
-
Notice that the *FsGroup* setting is required for most block storage and is set to the value of *26* since the PostgreSQL container runs as UID *26*.
172
-
173
-
{{% /expand%}}
174
-
175
-
{{%expand "GKE" %}}
176
-
177
-
=== GKE
178
-
179
-
Some notes for setting up GKE for the Operator deployment.
180
-
181
-
==== Install Kubectl
182
-
183
-
On your host you will be working from, install the kubectl command -
0 commit comments