@leverege/build-tools 2.48.5 → 2.49.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.
Files changed (57) hide show
  1. package/package.json +6 -5
  2. package/registry-compass.yaml +20 -0
  3. package/src/chart-compass.mjs +96 -0
  4. package/src/cnpg-snapshot.mjs +4 -29
  5. package/src/docker-to-registry.sh +611 -0
  6. package/src/helm-charts/api-server/values-local.yaml +7 -0
  7. package/src/helm-charts/authz-server/values-local.yaml +3 -0
  8. package/src/helm-charts/cnpg-db-pgbench/cnpg-db-pgbench.yaml.ovh +100 -0
  9. package/src/helm-charts/cnpg-db-pgbench/gitignore +2 -0
  10. package/src/helm-charts/cnpg-db-pgbench/helmdn.plugin +12 -0
  11. package/src/helm-charts/cnpg-db-pgbench/helmup.plugin +3 -0
  12. package/src/helm-charts/cnpg-db-pgbench/pooler.yaml +16 -0
  13. package/src/helm-charts/{db-postgres-stack/db-postgres-stack.yaml.ovh → cnpg-db-psql-stack/cnpg-db-psql-stack.yaml.ovh} +6 -24
  14. package/src/helm-charts/cnpg-db-psql-stack/gitignore +2 -0
  15. package/src/helm-charts/cnpg-db-psql-stack/helmdn.plugin +12 -0
  16. package/src/helm-charts/cnpg-db-psql-stack/helmup.plugin +3 -0
  17. package/src/helm-charts/cnpg-db-psql-stack/pooler.yaml +16 -0
  18. package/src/helm-charts/{db-timescale-plain/db-timescale-plain.yaml.ovh → cnpg-db-tsdb-basic/cnpg-db-tsdb-basic.yaml.ovh} +8 -28
  19. package/src/helm-charts/cnpg-db-tsdb-basic/gitignore +2 -0
  20. package/src/helm-charts/cnpg-db-tsdb-basic/helmdn.plugin +12 -0
  21. package/src/helm-charts/cnpg-db-tsdb-basic/helmup.plugin +3 -0
  22. package/src/helm-charts/cnpg-db-tsdb-basic/pooler.yaml +16 -0
  23. package/src/helm-charts/cnpg-db-tsdb-dense/.nohelm +0 -0
  24. package/src/helm-charts/cnpg-db-tsdb-dense/.nohelmdn +0 -0
  25. package/src/helm-charts/{db-timescale-dense/db-timescale-dense.yaml.ovh → cnpg-db-tsdb-dense/cnpg-db-tsdb-dense.yaml.ovh} +7 -27
  26. package/src/helm-charts/cnpg-db-tsdb-dense/gitignore +2 -0
  27. package/src/helm-charts/cnpg-db-tsdb-dense/helmdn.plugin +12 -0
  28. package/src/helm-charts/cnpg-db-tsdb-dense/helmup.plugin +5 -0
  29. package/src/helm-charts/cnpg-db-tsdb-dense/pooler.yaml +16 -0
  30. package/src/helm-charts/cnpg-operator/helmup.plugin +1 -1
  31. package/src/helm-charts/elasticsearch8/helmup.plugin +4 -5
  32. package/src/helm-charts/fota-server/values-local.yaml +3 -0
  33. package/src/helm-charts/kube-prometheus-stack/helmup.plugin +13 -0
  34. package/src/helm-charts/kube-prometheus-stack/old-values-local.yaml +764 -0
  35. package/src/helm-charts/pusher/values-local.yaml +2 -2
  36. package/src/helm-charts/resource-server/values-local.yaml +3 -0
  37. package/src/helm-charts/rule-engine/values-local.yaml +3 -0
  38. package/src/helm-charts/scheduler/values-local.yaml +3 -0
  39. package/src/helm-charts/transponder-tsdb/values-local.yaml +3 -0
  40. package/src/helm-charts/velero/helmup.plugin +1 -1
  41. package/src/helm-charts/velero/velero-local.yaml +1 -1
  42. package/src/helmup.sh +15 -26
  43. package/src/helm-charts/db-postgres-stack/gitignore +0 -1
  44. package/src/helm-charts/db-postgres-stack/helmdn.plugin +0 -3
  45. package/src/helm-charts/db-postgres-stack/helmup.plugin +0 -3
  46. package/src/helm-charts/db-timescale-dense/gitignore +0 -1
  47. package/src/helm-charts/db-timescale-dense/helmdn.plugin +0 -9
  48. package/src/helm-charts/db-timescale-dense/helmup.plugin +0 -5
  49. package/src/helm-charts/db-timescale-plain/gitignore +0 -1
  50. package/src/helm-charts/db-timescale-plain/helmdn.plugin +0 -3
  51. package/src/helm-charts/db-timescale-plain/helmup.plugin +0 -3
  52. /package/src/helm-charts/{db-postgres-stack → cnpg-db-pgbench}/.nohelm +0 -0
  53. /package/src/helm-charts/{db-postgres-stack → cnpg-db-pgbench}/.nohelmdn +0 -0
  54. /package/src/helm-charts/{db-timescale-dense → cnpg-db-psql-stack}/.nohelm +0 -0
  55. /package/src/helm-charts/{db-timescale-dense → cnpg-db-psql-stack}/.nohelmdn +0 -0
  56. /package/src/helm-charts/{db-timescale-plain → cnpg-db-tsdb-basic}/.nohelm +0 -0
  57. /package/src/helm-charts/{db-timescale-plain → cnpg-db-tsdb-basic}/.nohelmdn +0 -0
@@ -0,0 +1,100 @@
1
+ # Artifact Chart => https://artifacthub.io/packages/helm/cloudnative-pg/cloudnative-pg
2
+ # Examples Charts => https://cloudnative-pg.io/documentation/current/samples/
3
+ apiVersion: postgresql.cnpg.io/v1
4
+ kind: Cluster
5
+ metadata:
6
+ name: cnpg-db-pgbench
7
+ namespace: cnpg-operands
8
+ spec:
9
+ instances: 1
10
+ logLevel: info # warning debug
11
+
12
+ description: "Leverege PG Bench Timescale DB"
13
+ imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.1-cnpg-tsdb2-beta.6
14
+ bootstrap:
15
+ initdb:
16
+ postInitTemplateSQL:
17
+ - CREATE EXTENSION timescaledb;
18
+ - CREATE EXTENSION jsquery;
19
+ database: imagine
20
+ owner: imagine
21
+ secret:
22
+ name: cnpg-db-pgbench-imagine-pw # imagine db pw
23
+
24
+ enableSuperuserAccess: true
25
+ superuserSecret:
26
+ name: cnpg-db-pgbench-postgres-pw # postgres db pw
27
+
28
+ affinity:
29
+ # enablePodAntiAffinity: true
30
+ # topologyKey: failure-domain.beta.kubernetes.io/zone
31
+ tolerations:
32
+ - key: "database"
33
+ operator: "Equal"
34
+ value: "true"
35
+ effect: "NoSchedule"
36
+
37
+ # Parameters and pg_hba configuration will be append
38
+ # to the default ones to make the cluster work
39
+ postgresql:
40
+ shared_preload_libraries:
41
+ - timescaledb
42
+ - jsquery
43
+ parameters:
44
+ # max_worker_processes: "60"
45
+ max_worker_processes: "8"
46
+ max_parallel_workers: "8"
47
+ shared_buffers: 2GB
48
+ effective_cache_size: 6GB
49
+ maintenance_work_mem: 1GB
50
+ work_mem: 20MB
51
+ pg_hba:
52
+ # To access through TCP/IP you will need to get username
53
+ # and password from the secret cluster-example-custom-app
54
+ - host all all all md5
55
+
56
+
57
+ # Example of rolling update strategy:
58
+ # - unsupervised: automated update of the primary once all
59
+ # replicas have been upgraded (default)
60
+ # - supervised: requires manual supervision to perform
61
+ # the switchover of the primary
62
+ primaryUpdateStrategy: unsupervised
63
+
64
+ serviceAccountTemplate:
65
+ metadata:
66
+ annotations:
67
+ iam.gke.io/gcp-service-account: cnpg-operands-sa@OVH:<PROJECT_ID>.iam.gserviceaccount.com
68
+
69
+ # Require 50Gi of space per instance using ssd storage class
70
+ storage:
71
+ storageClass: premium-rwo
72
+ size: 50Gi
73
+
74
+ backup:
75
+ volumeSnapshot:
76
+ labels:
77
+ snapshotOf: cnpg-db-pgbench
78
+ className: cnpg-snapshotclass
79
+ barmanObjectStore:
80
+ destinationPath: gs://OVH:<PROJECT_ID>-barman
81
+ googleCredentials:
82
+ gkeEnvironment: true
83
+ tags:
84
+ cnpgCluster: cnpg-db-pgbench
85
+ wal:
86
+ compression: gzip
87
+ ---
88
+ apiVersion: postgresql.cnpg.io/v1
89
+ kind: ScheduledBackup
90
+ metadata:
91
+ name: cnpg-db-pgbench-backup
92
+ namespace: cnpg-operands
93
+ spec:
94
+ # https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
95
+ schedule: "0 0 * * * *"
96
+ cluster:
97
+ name: cnpg-db-pgbench
98
+ method: volumeSnapshot
99
+ backupOwnerReference: self
100
+ immediate: true
@@ -0,0 +1,2 @@
1
+ *.swp
2
+ cnpg-db-pgbench.yaml
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+ #
3
+ # We only want to hibernate unless the intent is to really delete EVERYTHING
4
+ # which includes PVCs and volume snapshots.
5
+ #
6
+ printf "\nHibernating the cnpg-db-pgbench cluster...\n"
7
+ kubectl cnpg hibernate on -n cnpg-operands cnpg-db-pgbench
8
+
9
+ # *** DANGER ***
10
+ # kubectl delete will destroy the cluster pods and PVCs!!!!!
11
+ # *** DANGER ***
12
+ # kubectl do-not-do-this-delete -f cnpg-db-pgbench/cnpg-db-pgbench.yaml $K8S_WHAT
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+ #
3
+ kubectl apply -f cnpg-db-pgbench/cnpg-db-pgbench.yaml $K8S_WHAT
@@ -0,0 +1,16 @@
1
+ apiVersion: postgresql.cnpg.io/v1
2
+ kind: Pooler
3
+ metadata:
4
+ name: cnpg-db-pgbench-pool-rw
5
+ namespace: cnpg-operands
6
+ spec:
7
+ cluster:
8
+ name: cnpg-db-pgbench
9
+
10
+ instances: 1
11
+ type: rw
12
+ pgbouncer:
13
+ poolMode: session
14
+ parameters:
15
+ max_client_conn: "500"
16
+ default_pool_size: "10"
@@ -3,7 +3,7 @@
3
3
  apiVersion: postgresql.cnpg.io/v1
4
4
  kind: Cluster
5
5
  metadata:
6
- name: db-postgres-stack
6
+ name: cnpg-db-psql-stack
7
7
  namespace: cnpg-operands
8
8
  spec:
9
9
  instances: 1
@@ -16,11 +16,11 @@ spec:
16
16
  database: imagine
17
17
  owner: imagine
18
18
  secret:
19
- name: db-postgres-stack-imagine-pw # imagine db pw
19
+ name: cnpg-db-psql-stack-imagine-pw # imagine db pw
20
20
 
21
21
  enableSuperuserAccess: true
22
22
  superuserSecret:
23
- name: db-postgres-stack-postgres-pw # postgres db pw
23
+ name: cnpg-db-psql-stack-postgres-pw # postgres db pw
24
24
 
25
25
  affinity:
26
26
  # enablePodAntiAffinity: true
@@ -67,44 +67,26 @@ spec:
67
67
  retentionPolicy: 30d
68
68
  volumeSnapshot:
69
69
  labels:
70
- snapshotOf: db-postgres-stack
70
+ snapshotOf: cnpg-db-psql-stack
71
71
  className: cnpg-snapshotclass
72
72
  barmanObjectStore:
73
73
  destinationPath: gs://OVH:<PROJECT_ID>-barman
74
74
  googleCredentials:
75
75
  gkeEnvironment: true
76
76
  tags:
77
- cnpgCluster: db-postgres-stack
77
+ cnpgCluster: cnpg-db-psql-stack
78
78
  wal:
79
79
  compression: gzip
80
- #---
81
- #apiVersion: postgresql.cnpg.io/v1
82
- #kind: Pooler
83
- #metadata:
84
- # name: db-postgres-stack-pool-rw
85
- # namespace: cnpg-operands
86
- #spec:
87
- # cluster:
88
- # name: db-postgres-stack
89
- #
90
- # instances: 1
91
- # type: rw
92
- # pgbouncer:
93
- # poolMode: session
94
- # parameters:
95
- # max_client_conn: "500"
96
- # default_pool_size: "10"
97
80
  ---
98
81
  apiVersion: postgresql.cnpg.io/v1
99
82
  kind: ScheduledBackup
100
83
  metadata:
101
- name: db-postgres-stack-backup
84
+ name: cnpg-db-psql-stack-backup
102
85
  namespace: cnpg-operands
103
86
  spec:
104
87
  # https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
105
88
  schedule: "0 0 * * * *"
106
89
  cluster:
107
- name: db-postgres-stack
108
90
  method: volumeSnapshot
109
91
  backupOwnerReference: self
110
92
  immediate: true
@@ -0,0 +1,2 @@
1
+ *.swp
2
+ cnpg-db-psql-stack.yaml
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+ #
3
+ # We only want to hibernate unless the intent is to really delete EVERYTHING
4
+ # which includes PVCs and volume snapshots.
5
+ #
6
+ printf "\nHibernating the cnpg-db-psql-stack cluster...\n"
7
+ kubectl cnpg hibernate on -n cnpg-operands cnpg-db-psql-stack
8
+
9
+ # *** DANGER ***
10
+ # kubectl delete will destroy the cluster
11
+ # *** DANGER ***
12
+ # kubectl delete -f cnpg-db-psql-stack/cnpg-db-psql-stack.yaml $K8S_WHAT
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ kubectl apply -f cnpg-db-psql-stack/cnpg-db-psql-stack.yaml $K8S_WHAT
@@ -0,0 +1,16 @@
1
+ apiVersion: postgresql.cnpg.io/v1
2
+ kind: Pooler
3
+ metadata:
4
+ name: cnpg-db-psql-stack-pool-rw
5
+ namespace: cnpg-operands
6
+ spec:
7
+ cluster:
8
+ name: cnpg-db-psql-stack
9
+
10
+ instances: 1
11
+ type: rw
12
+ pgbouncer:
13
+ poolMode: session
14
+ parameters:
15
+ max_client_conn: "500"
16
+ default_pool_size: "10"
@@ -3,11 +3,11 @@
3
3
  apiVersion: postgresql.cnpg.io/v1
4
4
  kind: Cluster
5
5
  metadata:
6
- name: db-timescale-plain
6
+ name: cnpg-db-tsdb-basic
7
7
  namespace: cnpg-operands
8
8
  spec:
9
9
  instances: 1
10
- logLevel: debug
10
+ logLevel: info # warning debug
11
11
 
12
12
  description: "Leverege Plain Timescale DB"
13
13
  imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.1-cnpg-tsdb2-beta.6
@@ -19,11 +19,11 @@ spec:
19
19
  database: imagine
20
20
  owner: imagine
21
21
  secret:
22
- name: db-timescale-plain-imagine-pw # imagine db pw
22
+ name: cnpg-db-tsdb-basic-imagine-pw # imagine db pw
23
23
 
24
24
  enableSuperuserAccess: true
25
25
  superuserSecret:
26
- name: db-timescale-plain-postgres-pw # postgres db pw
26
+ name: cnpg-db-tsdb-basic-postgres-pw # postgres db pw
27
27
 
28
28
  affinity:
29
29
  # enablePodAntiAffinity: true
@@ -70,51 +70,31 @@ spec:
70
70
  storage:
71
71
  storageClass: premium-rwo
72
72
  size: 50Gi
73
- walStorage:
74
- storageClass: premium-rwo
75
- size: 1Gi
76
73
 
77
74
  backup:
78
75
  volumeSnapshot:
79
76
  labels:
80
- snapshotOf: db-timescale-plain
77
+ snapshotOf: cnpg-db-tsdb-basic
81
78
  className: cnpg-snapshotclass
82
79
  barmanObjectStore:
83
80
  destinationPath: gs://OVH:<PROJECT_ID>-barman
84
81
  googleCredentials:
85
82
  gkeEnvironment: true
86
83
  tags:
87
- cnpgCluster: db-timescale-plain
84
+ cnpgCluster: cnpg-db-tsdb-basic
88
85
  wal:
89
86
  compression: gzip
90
87
  ---
91
88
  apiVersion: postgresql.cnpg.io/v1
92
- kind: Pooler
93
- metadata:
94
- name: db-timescale-plain-pool-rw
95
- namespace: cnpg-operands
96
- spec:
97
- cluster:
98
- name: db-timescale-plain
99
-
100
- instances: 1
101
- type: rw
102
- pgbouncer:
103
- poolMode: session
104
- parameters:
105
- max_client_conn: "500"
106
- default_pool_size: "10"
107
- ---
108
- apiVersion: postgresql.cnpg.io/v1
109
89
  kind: ScheduledBackup
110
90
  metadata:
111
- name: db-timescale-plain-backup
91
+ name: cnpg-db-tsdb-basic-backup
112
92
  namespace: cnpg-operands
113
93
  spec:
114
94
  # https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
115
95
  schedule: "0 0 * * * *"
116
96
  cluster:
117
- name: db-timescale-plain
97
+ name: cnpg-db-tsdb-basic
118
98
  method: volumeSnapshot
119
99
  backupOwnerReference: self
120
100
  immediate: true
@@ -0,0 +1,2 @@
1
+ *.swp
2
+ cnpg-db-tsdb-basic.yaml
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+ #
3
+ # We only want to hibernate unless the intent is to really delete EVERYTHING
4
+ # which includes PVCs and volume snapshots.
5
+ #
6
+ printf "\nHibernating the cnpg-db-tsdb-basic cluster...\n"
7
+ kubectl cnpg hibernate on -n cnpg-operands cnpg-db-tsdb-basic
8
+
9
+ # *** DANGER ***
10
+ # kubectl delete will destroy the cluster pods and PVCs!!!!!
11
+ # *** DANGER ***
12
+ # kubectl do-not-do-this-delete -f cnpg-db-tsdb-basic/cnpg-db-tsdb-basic.yaml $K8S_WHAT
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+ #
3
+ kubectl apply -f cnpg-db-tsdb-basic/cnpg-db-tsdb-basic.yaml $K8S_WHAT
@@ -0,0 +1,16 @@
1
+ apiVersion: postgresql.cnpg.io/v1
2
+ kind: Pooler
3
+ metadata:
4
+ name: cnpg-db-tsdb-basic-pool-rw
5
+ namespace: cnpg-operands
6
+ spec:
7
+ cluster:
8
+ name: cnpg-db-tsdb-basic
9
+
10
+ instances: 1
11
+ type: rw
12
+ pgbouncer:
13
+ poolMode: session
14
+ parameters:
15
+ max_client_conn: "500"
16
+ default_pool_size: "10"
File without changes
File without changes
@@ -3,7 +3,7 @@
3
3
  apiVersion: postgresql.cnpg.io/v1
4
4
  kind: Cluster
5
5
  metadata:
6
- name: db-timescale-dense
6
+ name: cnpg-db-tsdb-dense
7
7
  namespace: cnpg-operands
8
8
  spec:
9
9
  instances: 1
@@ -19,11 +19,11 @@ spec:
19
19
  database: imagine
20
20
  owner: imagine
21
21
  secret:
22
- name: db-timescale-dense-imagine-pw # imagine db pw
22
+ name: cnpg-db-tsdb-dense-imagine-pw # imagine db pw
23
23
 
24
24
  enableSuperuserAccess: true
25
25
  superuserSecret:
26
- name: db-timescale-dense-postgres-pw # postgres db pw
26
+ name: cnpg-db-tsdb-dense-postgres-pw # postgres db pw
27
27
 
28
28
  affinity:
29
29
  # enablePodAntiAffinity: true
@@ -70,51 +70,31 @@ spec:
70
70
  storage:
71
71
  storageClass: premium-rwo
72
72
  size: 50Gi
73
- walStorage:
74
- storageClass: premium-rwo
75
- size: 1Gi
76
73
 
77
74
  backup:
78
75
  volumeSnapshot:
79
76
  labels:
80
- snapshotOf: db-timescale-dense
77
+ snapshotOf: cnpg-db-tsdb-dense
81
78
  className: cnpg-snapshotclass
82
79
  barmanObjectStore:
83
80
  destinationPath: gs://OVH:<PROJECT_ID>-barman
84
81
  googleCredentials:
85
82
  gkeEnvironment: true
86
83
  tags:
87
- cnpgCluster: db-timescale-dense
84
+ cnpgCluster: cnpg-db-tsdb-dense
88
85
  wal:
89
86
  compression: gzip
90
87
  ---
91
88
  apiVersion: postgresql.cnpg.io/v1
92
- kind: Pooler
93
- metadata:
94
- name: db-timescale-dense-pool-rw
95
- namespace: cnpg-operands
96
- spec:
97
- cluster:
98
- name: db-timescale-dense
99
-
100
- instances: 1
101
- type: rw
102
- pgbouncer:
103
- poolMode: session
104
- parameters:
105
- max_client_conn: "500"
106
- default_pool_size: "10"
107
- ---
108
- apiVersion: postgresql.cnpg.io/v1
109
89
  kind: ScheduledBackup
110
90
  metadata:
111
- name: db-timescale-dense-backup
91
+ name: cnpg-db-tsdb-dense-backup
112
92
  namespace: cnpg-operands
113
93
  spec:
114
94
  # https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format
115
95
  schedule: "0 0 * * * *"
116
96
  cluster:
117
- name: db-timescale-dense
97
+ name: cnpg-db-tsdb-dense
118
98
  method: volumeSnapshot
119
99
  backupOwnerReference: self
120
100
  immediate: true
@@ -0,0 +1,2 @@
1
+ *.swp
2
+ cnpg-db-tsdb-dense.yaml
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+ #
3
+ # We only want to hibernate unless the intent is to really delete EVERYTHING
4
+ # which includes PVCs and volume snapshots.
5
+ #
6
+ printf "\nHibernating the cnpg-db-tsdb-dense cluster...\n"
7
+ kubectl cnpg hibernate on -n cnpg-operands cnpg-db-tsdb-dense
8
+
9
+ # *** DANGER ***
10
+ # kubectl delete will destroy the cluster
11
+ # *** DANGER ***
12
+ # kubectl delete -f cnpg-db-tsdb-dense/cnpg-db-tsdb-dense.yaml $K8S_WHAT
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+ #
3
+ #bindWorkloadIdentity cnpg-operands-sa cnpg-operands cnpg-db-tsdb-dense
4
+
5
+ kubectl apply -f cnpg-db-tsdb-dense/cnpg-db-tsdb-dense.yaml $K8S_WHAT
@@ -0,0 +1,16 @@
1
+ apiVersion: postgresql.cnpg.io/v1
2
+ kind: Pooler
3
+ metadata:
4
+ name: cnpg-db-tsdb-dense-pool-rw
5
+ namespace: cnpg-operands
6
+ spec:
7
+ cluster:
8
+ name: cnpg-db-tsdb-dense
9
+
10
+ instances: 1
11
+ type: rw
12
+ pgbouncer:
13
+ poolMode: session
14
+ parameters:
15
+ max_client_conn: "500"
16
+ default_pool_size: "10"
@@ -5,6 +5,6 @@ addHelmRepo cnpg https://cloudnative-pg.github.io/charts
5
5
 
6
6
  helm upgrade --install cnpg cnpg/cloudnative-pg \
7
7
  --namespace cnpg-system --create-namespace \
8
- --set webhook.port="10250"
8
+ --set webhook.port="10250" $HELM_WHAT
9
9
 
10
10
  removeHelmRepo cnpg
@@ -2,19 +2,18 @@
2
2
  #
3
3
  showInstalling "Elastic Search 8"
4
4
 
5
+ OCI_CHART="oci://registry-1.docker.io/bitnamicharts/elasticsearch"
6
+
5
7
  LOCAL_ES_VALUES="elasticsearch8/elasticsearch-local-dev.yaml"
6
8
  #LOCAL_ES_VALUES="elasticsearch8/elasticsearch-local-prd.yaml"
7
9
  [ ! -f "$LOCAL_ES_VALUES" ] && exitOnError 1 "Missing the local ES config file => `color y $LOCAL_ES_VALUES`"
8
10
 
9
- addBitnamiRepo latest
10
- [ -z "$ELASTIC_CHART_VERSION" ] && ELASTIC_CHART_VERSION="19"
11
- helm upgrade --install elasticsearch8 bitnami/elasticsearch \
11
+ [ -z "$ELASTIC_CHART_VERSION" ] && ELASTIC_CHART_VERSION="19.21.2"
12
+ helm upgrade --install elasticsearch8 $OCI_CHART \
12
13
  --namespace elastic --create-namespace \
13
14
  --values $LOCAL_ES_VALUES \
14
15
  --version $ELASTIC_CHART_VERSION $HELM_WHAT
15
16
 
16
- removeHelmRepo bitnami
17
-
18
17
  ## Installing ES8 exporter
19
18
  addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
20
19
  helm upgrade --install elasticsearch8-exporter prometheus-community/prometheus-elasticsearch-exporter \
@@ -6,3 +6,6 @@ config:
6
6
  PROJECT_ID: 'set-me-in-values-local'
7
7
  SYSTEM_ID: 'set-me-in-values-local'
8
8
  NETWORK_ID: 'set-me-in-values-local'
9
+
10
+ # CNPG override
11
+ # SQL_HOST: "db-postgres-stack-rw.cnpg-operands" # vs postgres-postgresql
@@ -0,0 +1,13 @@
1
+ #!/bin/bash
2
+ #
3
+ showInstalling "The Prometheus Kube Stack"
4
+
5
+ addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
6
+
7
+ [ -z "$PROMETHEUS_STACK_CHART_VERSION" ] && PROMETHEUS_STACK_CHART_VERSION="57"
8
+
9
+ helm upgrade --install prometheus-stack prometheus-community/kube-prometheus-stack \
10
+ --namespace prometheus --create-namespace \
11
+ --version $PROMETHEUS_STACK_CHART_VERSION $HELM_WHAT
12
+
13
+ removeHelmRepo prometheus-community