@leverege/build-tools 2.49.0 → 2.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/src/helm-charts/cnpg-db-pgbench/helmup.plugin +1 -1
- package/src/helm-charts/cnpg-db-psql-stack/{cnpg-db-psql-stack.yaml.ovh → cluster.yaml.ovh} +16 -2
- package/src/helm-charts/cnpg-db-psql-stack/helmup.plugin +1 -1
- package/src/helm-charts/cnpg-db-tsdb-basic/{cnpg-db-tsdb-basic.yaml.ovh → cluster.yaml.ovh} +24 -14
- package/src/helm-charts/cnpg-db-tsdb-basic/helmup.plugin +1 -1
- package/src/helm-charts/cnpg-db-tsdb-dense/{cnpg-db-tsdb-dense.yaml.ovh → cluster.yalm.ovh} +18 -9
- package/src/helm-charts/cnpg-db-tsdb-dense/helmup.plugin +1 -3
- /package/src/{cnpg-snapshot.mjs → cnpg-backup.mjs} +0 -0
- /package/src/helm-charts/cnpg-db-pgbench/{cnpg-db-pgbench.yaml.ovh → cluster.yaml.ovh} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.50.0",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build-tools": "src/build-tools.mjs",
|
|
17
17
|
"chart-to-registry": "src/chart-to-registry.mjs",
|
|
18
18
|
"circleate": "src/circleate.sh",
|
|
19
|
-
"cnpg-
|
|
19
|
+
"cnpg-backup": "src/cnpg-backup.mjs",
|
|
20
20
|
"decrypt-secrets": "src/decrypt-secrets.sh",
|
|
21
21
|
"dirty-git": "src/dirty-git.sh",
|
|
22
22
|
"dockreate": "src/dockreate.sh",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"author": "Leverege Devs",
|
|
55
55
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@google-cloud/artifact-registry": "^3.
|
|
57
|
+
"@google-cloud/artifact-registry": "^3.3.0",
|
|
58
58
|
"ansi-colors": "^4.1.3",
|
|
59
59
|
"chalk": "^5.3.0",
|
|
60
60
|
"command-line-args": "^5.2.1",
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
"execa": "^8.0.1",
|
|
65
65
|
"glob": "^10.3.12",
|
|
66
66
|
"handlebars": "^4.7.8",
|
|
67
|
-
"inquirer": "^9.2.
|
|
67
|
+
"inquirer": "^9.2.18",
|
|
68
68
|
"js-yaml": "^4.1.0",
|
|
69
69
|
"ms": "^2.1.3",
|
|
70
|
-
"npm-registry-fetch": "^16.1
|
|
70
|
+
"npm-registry-fetch": "^16.2.1",
|
|
71
71
|
"package-up": "^5.0.0",
|
|
72
72
|
"parse-gitignore": "^2.0.0",
|
|
73
73
|
"read-pkg": "^9.0.1",
|
|
74
74
|
"readline-sync": "^1.4.10",
|
|
75
75
|
"semver": "^7.6.0",
|
|
76
76
|
"simple-git": "^3.24.0",
|
|
77
|
-
"zx": "^
|
|
77
|
+
"zx": "^8.0.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@leverege/eslint-config-leverege": "^4.2.0",
|
|
81
|
-
"npm": "^10.5.
|
|
81
|
+
"npm": "^10.5.2"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -10,7 +10,7 @@ spec:
|
|
|
10
10
|
# logLevel: debug
|
|
11
11
|
|
|
12
12
|
description: "Leverege Stack PostgreSQL DB"
|
|
13
|
-
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.
|
|
13
|
+
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.2-cnpg-tsdb2-beta.4
|
|
14
14
|
bootstrap:
|
|
15
15
|
initdb:
|
|
16
16
|
database: imagine
|
|
@@ -35,10 +35,10 @@ spec:
|
|
|
35
35
|
# to the default ones to make the cluster work
|
|
36
36
|
postgresql:
|
|
37
37
|
parameters:
|
|
38
|
+
max_connections: "123"
|
|
38
39
|
# max_worker_processes: "60"
|
|
39
40
|
# max_worker_processes: "8"
|
|
40
41
|
# max_parallel_workers: "8"
|
|
41
|
-
max_connections: "500"
|
|
42
42
|
# shared_buffers: 2GB
|
|
43
43
|
# effective_cache_size: 6GB
|
|
44
44
|
# maintenance_work_mem: 1GB
|
|
@@ -90,3 +90,17 @@ spec:
|
|
|
90
90
|
method: volumeSnapshot
|
|
91
91
|
backupOwnerReference: self
|
|
92
92
|
immediate: true
|
|
93
|
+
---
|
|
94
|
+
apiVersion: postgresql.cnpg.io/v1
|
|
95
|
+
kind: ScheduledBackup
|
|
96
|
+
metadata:
|
|
97
|
+
name: cnpg-db-psql-stack-volsnap
|
|
98
|
+
namespace: cnpg-operands
|
|
99
|
+
spec:
|
|
100
|
+
# https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
|
|
101
|
+
schedule: "0 0 */4 * * *"
|
|
102
|
+
cluster:
|
|
103
|
+
name: cnpg-db-psql-stack
|
|
104
|
+
method: volumeSnapshot
|
|
105
|
+
backupOwnerReference: self
|
|
106
|
+
immediate: true
|
|
@@ -9,8 +9,11 @@ spec:
|
|
|
9
9
|
instances: 1
|
|
10
10
|
logLevel: info # warning debug
|
|
11
11
|
|
|
12
|
+
monitoring:
|
|
13
|
+
enablePodMonitor: false # set true once monitoring is setup
|
|
14
|
+
|
|
12
15
|
description: "Leverege Plain Timescale DB"
|
|
13
|
-
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.
|
|
16
|
+
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.2-cnpg-tsdb2-beta.4
|
|
14
17
|
bootstrap:
|
|
15
18
|
initdb:
|
|
16
19
|
postInitTemplateSQL:
|
|
@@ -26,8 +29,16 @@ spec:
|
|
|
26
29
|
name: cnpg-db-tsdb-basic-postgres-pw # postgres db pw
|
|
27
30
|
|
|
28
31
|
affinity:
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
enablePodAntiAffinity: true
|
|
33
|
+
topologyKey: failure-domain.beta.kubernetes.io/zone
|
|
34
|
+
nodeAffinity:
|
|
35
|
+
requiredDuringSchedulingIgnoredDuringExecution:
|
|
36
|
+
nodeSelectorTerms:
|
|
37
|
+
- matchExpressions:
|
|
38
|
+
- key: target-env
|
|
39
|
+
operator: In
|
|
40
|
+
values:
|
|
41
|
+
- database
|
|
31
42
|
tolerations:
|
|
32
43
|
- key: "database"
|
|
33
44
|
operator: "Equal"
|
|
@@ -41,19 +52,19 @@ spec:
|
|
|
41
52
|
- timescaledb
|
|
42
53
|
- jsquery
|
|
43
54
|
parameters:
|
|
55
|
+
max_connections: "123"
|
|
44
56
|
# max_worker_processes: "60"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
# max_worker_processes: "8"
|
|
58
|
+
# max_parallel_workers: "8"
|
|
59
|
+
# shared_buffers: 2GB
|
|
60
|
+
# effective_cache_size: 6GB
|
|
61
|
+
# maintenance_work_mem: 1GB
|
|
62
|
+
# work_mem: 20MB
|
|
51
63
|
pg_hba:
|
|
52
64
|
# To access through TCP/IP you will need to get username
|
|
53
65
|
# and password from the secret cluster-example-custom-app
|
|
54
66
|
- host all all all md5
|
|
55
67
|
|
|
56
|
-
|
|
57
68
|
# Example of rolling update strategy:
|
|
58
69
|
# - unsupervised: automated update of the primary once all
|
|
59
70
|
# replicas have been upgraded (default)
|
|
@@ -66,10 +77,9 @@ spec:
|
|
|
66
77
|
annotations:
|
|
67
78
|
iam.gke.io/gcp-service-account: cnpg-operands-sa@OVH:<PROJECT_ID>.iam.gserviceaccount.com
|
|
68
79
|
|
|
69
|
-
# Require 50Gi of space per instance using ssd storage class
|
|
70
80
|
storage:
|
|
71
81
|
storageClass: premium-rwo
|
|
72
|
-
size:
|
|
82
|
+
size: 76Gi
|
|
73
83
|
|
|
74
84
|
backup:
|
|
75
85
|
volumeSnapshot:
|
|
@@ -88,11 +98,11 @@ spec:
|
|
|
88
98
|
apiVersion: postgresql.cnpg.io/v1
|
|
89
99
|
kind: ScheduledBackup
|
|
90
100
|
metadata:
|
|
91
|
-
name: cnpg-db-tsdb-basic-
|
|
101
|
+
name: cnpg-db-tsdb-basic-volsnap
|
|
92
102
|
namespace: cnpg-operands
|
|
93
103
|
spec:
|
|
94
104
|
# https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
|
|
95
|
-
schedule: "0 0
|
|
105
|
+
schedule: "0 0 */8 * * *"
|
|
96
106
|
cluster:
|
|
97
107
|
name: cnpg-db-tsdb-basic
|
|
98
108
|
method: volumeSnapshot
|
|
@@ -7,10 +7,13 @@ metadata:
|
|
|
7
7
|
namespace: cnpg-operands
|
|
8
8
|
spec:
|
|
9
9
|
instances: 1
|
|
10
|
-
logLevel: debug
|
|
10
|
+
logLevel: info # warning debug
|
|
11
|
+
|
|
12
|
+
monitoring:
|
|
13
|
+
enablePodMonitor: false # set true once monitoring is setup
|
|
11
14
|
|
|
12
15
|
description: "Leverege Dense Timescale DB"
|
|
13
|
-
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.
|
|
16
|
+
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.2-cnpg-tsdb2-beta.4
|
|
14
17
|
bootstrap:
|
|
15
18
|
initdb:
|
|
16
19
|
postInitTemplateSQL:
|
|
@@ -26,8 +29,16 @@ spec:
|
|
|
26
29
|
name: cnpg-db-tsdb-dense-postgres-pw # postgres db pw
|
|
27
30
|
|
|
28
31
|
affinity:
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
enablePodAntiAffinity: true
|
|
33
|
+
topologyKey: failure-domain.beta.kubernetes.io/zone
|
|
34
|
+
nodeAffinity:
|
|
35
|
+
requiredDuringSchedulingIgnoredDuringExecution:
|
|
36
|
+
nodeSelectorTerms:
|
|
37
|
+
- matchExpressions:
|
|
38
|
+
- key: target-env
|
|
39
|
+
operator: In
|
|
40
|
+
values:
|
|
41
|
+
- database
|
|
31
42
|
tolerations:
|
|
32
43
|
- key: "database"
|
|
33
44
|
operator: "Equal"
|
|
@@ -53,7 +64,6 @@ spec:
|
|
|
53
64
|
# and password from the secret cluster-example-custom-app
|
|
54
65
|
- host all all all md5
|
|
55
66
|
|
|
56
|
-
|
|
57
67
|
# Example of rolling update strategy:
|
|
58
68
|
# - unsupervised: automated update of the primary once all
|
|
59
69
|
# replicas have been upgraded (default)
|
|
@@ -66,10 +76,9 @@ spec:
|
|
|
66
76
|
annotations:
|
|
67
77
|
iam.gke.io/gcp-service-account: cnpg-operands-sa@OVH:<PROJECT_ID>.iam.gserviceaccount.com
|
|
68
78
|
|
|
69
|
-
# Require 50Gi of space per instance using ssd storage class
|
|
70
79
|
storage:
|
|
71
80
|
storageClass: premium-rwo
|
|
72
|
-
size:
|
|
81
|
+
size: 77Gi
|
|
73
82
|
|
|
74
83
|
backup:
|
|
75
84
|
volumeSnapshot:
|
|
@@ -88,11 +97,11 @@ spec:
|
|
|
88
97
|
apiVersion: postgresql.cnpg.io/v1
|
|
89
98
|
kind: ScheduledBackup
|
|
90
99
|
metadata:
|
|
91
|
-
name: cnpg-db-tsdb-dense-
|
|
100
|
+
name: cnpg-db-tsdb-dense-volsnap
|
|
92
101
|
namespace: cnpg-operands
|
|
93
102
|
spec:
|
|
94
103
|
# https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
|
|
95
|
-
schedule: "0 0
|
|
104
|
+
schedule: "0 0 */8 * * *"
|
|
96
105
|
cluster:
|
|
97
106
|
name: cnpg-db-tsdb-dense
|
|
98
107
|
method: volumeSnapshot
|
|
File without changes
|
|
File without changes
|