File tree Expand file tree Collapse file tree 8 files changed +97
-5
lines changed
postgres-operator/files/postgres-operator/cluster/1 Expand file tree Collapse file tree 8 files changed +97
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ limitations under the License.
1717
1818import ()
1919
20- const PGO_VERSION = "3.3.0-rc4 "
20+ const PGO_VERSION = "3.3.0"
2121
2222// Ok status
2323const Ok = "ok"
Original file line number Diff line number Diff line change 1+ {
2+ "kind" : " Deployment" ,
3+ "apiVersion" : " extensions/v1beta1" ,
4+ "metadata" : {
5+ "name" : " {{.Name}}" ,
6+ "labels" : {
7+ "name" : " {{.Name}}" ,
8+ "pg-cluster" : " {{.ClusterName}}"
9+ }
10+ },
11+ "spec" : {
12+ "replicas" : 1 ,
13+ "template" : {
14+ "metadata" : {
15+ "labels" : {
16+ "name" : " {{.Name}}" ,
17+ "crunchy-pgbouncer" : " true" ,
18+ "pg-cluster" : " {{.ClusterName}}"
19+ }
20+ },
21+ "spec" : {
22+
23+ "containers" : [{
24+ "name" : " pgbouncer" ,
25+ "image" : " {{.CCPImagePrefix}}/crunchy-pgbouncer:{{.CCPImageTag}}" ,
26+ "ports" : [{
27+ "containerPort" : {{.Port }},
28+ "protocol" : " TCP"
29+ }],
30+ "env" : [{
31+ "name" : " PG_USERNAME" ,
32+ "value" : " testuser"
33+ }, {
34+ "name" : " PG_PASSWORD" ,
35+ "value" : " password"
36+ }, {
37+ "name" : " PG_PRIMARY_SERVICE_NAME" ,
38+ "value" : " {{.PrimaryServiceName}}"
39+ }, {
40+ "name" : " PG_REPLICA_SERVICE_NAME" ,
41+ "value" : " {{.ReplicaServiceName}}"
42+ }],
43+ "volumeMounts" : [{
44+ "name" : " pgbouncer-conf" ,
45+ "mountPath" : " /pgconf/" ,
46+ "readOnly" : false
47+ }]
48+ }],
49+ "volumes" : [{
50+ "name" : " pgbouncer-conf" ,
51+ "secret" : {
52+ "secretName" : " {{.SecretsName}}" ,
53+ "defaultMode" : 511
54+ }
55+ }],
56+ "restartPolicy" : " Always" ,
57+ "dnsPolicy" : " ClusterFirst"
58+ }
59+ },
60+ "strategy" : {
61+ "type" : " RollingUpdate" ,
62+ "rollingUpdate" : {
63+ "maxUnavailable" : 1 ,
64+ "maxSurge" : 1
65+ }
66+ }
67+ }
68+ }
Original file line number Diff line number Diff line change 1+ [databases]
2+ {{.PG_PRIMARY_SERVICE_NAME}} = host ={{.PG_PRIMARY_SERVICE_NAME}} port =5432 auth_user ={{.PG_USERNAME}} dbname =userdb
3+ {{.PG_REPLICA_SERVICE_NAME}} = host ={{.PG_REPLICA_SERVICE_NAME}} port =5432 auth_user ={{.PG_USERNAME}} dbname =userdb
4+
5+ [pgbouncer]
6+ listen_port = 5432
7+ listen_addr = *
8+ auth_type = md5
9+ auth_file = /pgconf/users.txt
10+ auth_query = SELECT username, password from pgbouncer.get_auth($1)
11+ pidfile = /tmp/pgbouncer.pid
12+ logfile = /dev/stdout
13+ admin_users = {{.PG_USERNAME}}
14+ stats_users = {{.PG_USERNAME}}
15+ default_pool_size = 20
16+ max_client_conn = 100
17+ max_db_connections = 0
18+ min_pool_size = 0
19+ pool_mode = session
20+ reserve_pool_size = 0
21+ reserve_pool_timeout = 5
22+ query_timeout = 0
23+ ignore_startup_parameters = extra_float_digits
Original file line number Diff line number Diff line change 1+ host all all 0.0.0.0/0 md5
Original file line number Diff line number Diff line change 1+ {{range $key, $value := .}}"{{.Username}}" "{{.Password}}"
2+ {{end}}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Storage:
3636 AccessMode : ReadWriteOnce
3737 Size : 1G
3838 StorageType : dynamic
39- StorageClass : fast
39+ StorageClass : rook-ceph-block
4040 Fsgroup : 26
4141DefaultContainerResource :
4242ContainerResources :
5656 LSPVCTemplate : /config/pgo.lspvc-template.json
5757 LoadTemplate : /config/pgo.load-template.json
5858 COImagePrefix : crunchydata
59- COImageTag : centos7-3.3.0-rc4
59+ COImageTag : centos7-3.3.0
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ import (
2525 "strings"
2626)
2727
28- //const PGO_VERSION = "3.2"
29-
3028type ClusterStruct struct {
3129 CCPImagePrefix string `yaml:"CCPImagePrefix"`
3230 CCPImageTag string `yaml:"CCPImageTag"`
You can’t perform that action at this time.
0 commit comments