Skip to content

Commit d57dbfc

Browse files
author
jmccormick2001
committed
update helm chart to 3.3.0 baseline
1 parent 1ff158e commit d57dbfc

File tree

8 files changed

+97
-5
lines changed

8 files changed

+97
-5
lines changed

apiservermsgs/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717

1818
import ()
1919

20-
const PGO_VERSION = "3.3.0-rc4"
20+
const PGO_VERSION = "3.3.0"
2121

2222
// Ok status
2323
const Ok = "ok"

chart/install-tiller-rbac.sh

100644100755
File mode changed.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
host all all 0.0.0.0/0 md5
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{range $key, $value := .}}"{{.Username}}" "{{.Password}}"
2+
{{end}}

conf/apiserver/pgo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
4141
DefaultContainerResource:
4242
ContainerResources:
@@ -56,4 +56,4 @@ Pgo:
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

config/pgoconfig.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import (
2525
"strings"
2626
)
2727

28-
//const PGO_VERSION = "3.2"
29-
3028
type ClusterStruct struct {
3129
CCPImagePrefix string `yaml:"CCPImagePrefix"`
3230
CCPImageTag string `yaml:"CCPImageTag"`

0 commit comments

Comments
 (0)