@leverege/build-tools 2.5.25 → 2.5.27
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/lib/server/overwhelm.js +1 -1
- package/lib/server/repo-init/config.tgz +0 -0
- package/lib/web/overwhelm.js +1 -1
- package/package.json +2 -2
- package/src/helmup +13 -9
- package/src/install-traefik +38 -0
- package/src/overwhelm.js +1 -1
package/lib/server/overwhelm.js
CHANGED
|
@@ -275,7 +275,7 @@ ahoy.forEach(dir => {
|
|
|
275
275
|
}
|
|
276
276
|
}); // we can also apply replaceables to any top level .ovh files to support top level config maps
|
|
277
277
|
|
|
278
|
-
glob.sync('
|
|
278
|
+
glob.sync('**/*.ovh').forEach(cfgmap => {
|
|
279
279
|
const target = cfgmap.replace(/.ovh$/, '');
|
|
280
280
|
let valuesOut = fs.readFileSync(cfgmap, {
|
|
281
281
|
encoding: 'utf-8'
|
|
Binary file
|
package/lib/web/overwhelm.js
CHANGED
|
@@ -275,7 +275,7 @@ ahoy.forEach(dir => {
|
|
|
275
275
|
}
|
|
276
276
|
}); // we can also apply replaceables to any top level .ovh files to support top level config maps
|
|
277
277
|
|
|
278
|
-
glob.sync('
|
|
278
|
+
glob.sync('**/*.ovh').forEach(cfgmap => {
|
|
279
279
|
const target = cfgmap.replace(/.ovh$/, '');
|
|
280
280
|
let valuesOut = fs.readFileSync(cfgmap, {
|
|
281
281
|
encoding: 'utf-8'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.27",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
"@babel/node": "^7.12.13",
|
|
79
79
|
"@leverege/babel-preset-leverege-node": "^1.1.1",
|
|
80
80
|
"@leverege/eslint-config-leverege": "^2.2.0",
|
|
81
|
-
"npm": "^7.5.
|
|
81
|
+
"npm": "^7.5.3"
|
|
82
82
|
}
|
|
83
83
|
}
|
package/src/helmup
CHANGED
|
@@ -13,10 +13,12 @@ PLATFORM=(
|
|
|
13
13
|
api-server
|
|
14
14
|
db-curator
|
|
15
15
|
emailer
|
|
16
|
+
geotile-server
|
|
16
17
|
imagine
|
|
17
18
|
message-processor
|
|
18
19
|
messenger
|
|
19
20
|
reason
|
|
21
|
+
resource-server
|
|
20
22
|
scheduler
|
|
21
23
|
transponder-bq
|
|
22
24
|
transponder-rt
|
|
@@ -72,7 +74,8 @@ function installMonitoringCharts(){
|
|
|
72
74
|
|
|
73
75
|
# Add necessary helm repositories - note that stable is deprecated
|
|
74
76
|
printf "\nAdding and updating helm repositories...\n"
|
|
75
|
-
helm repo add stable https://charts.helm.sh/stable &> /dev/null
|
|
77
|
+
helm repo add stable https://charts.helm.sh/stable &> /dev/null # deprecated REMOVE ME
|
|
78
|
+
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts &> /dev/null
|
|
76
79
|
helm repo update
|
|
77
80
|
|
|
78
81
|
## Set the project id by parsing current context
|
|
@@ -103,10 +106,10 @@ SA_EXISTS
|
|
|
103
106
|
GCP_PROJECT_ID=${ADDR[1]} # project id is the second string split by _
|
|
104
107
|
SDEXP_SA='stackdriver-exporter'
|
|
105
108
|
helm upgrade --install stackdriver-exporter \
|
|
106
|
-
|
|
109
|
+
prometheus-community/prometheus-stackdriver-exporter \
|
|
107
110
|
--namespace monitoring \
|
|
108
111
|
--values stackdriver-exporter/values.yaml \
|
|
109
|
-
--version 1.
|
|
112
|
+
--version 1.8.0
|
|
110
113
|
|
|
111
114
|
# Verify the Kubernetes SA
|
|
112
115
|
kubectl get sa -n monitoring $SDEXP_SA
|
|
@@ -142,22 +145,23 @@ SA_EXISTS
|
|
|
142
145
|
fi
|
|
143
146
|
|
|
144
147
|
## Install Prometheus
|
|
145
|
-
helm upgrade --install prometheus
|
|
148
|
+
helm upgrade --install prometheus prometheus-community/prometheus \
|
|
146
149
|
--namespace monitoring \
|
|
147
150
|
-f prometheus/values.yaml \
|
|
148
|
-
--version
|
|
151
|
+
--version 13.2.1
|
|
149
152
|
|
|
150
153
|
## Installing ES exporter
|
|
151
|
-
helm upgrade --install elasticsearch-exporter
|
|
154
|
+
helm upgrade --install elasticsearch-exporter prometheus-community/prometheus-elasticsearch-exporter \
|
|
152
155
|
--namespace monitoring \
|
|
153
156
|
-f elasticsearch-exporter/values-es-exporter.yaml \
|
|
154
|
-
--version
|
|
157
|
+
--version 4.1.0
|
|
155
158
|
|
|
156
159
|
## Install Grafana
|
|
157
|
-
helm
|
|
160
|
+
helm repo add grafana https://grafana.github.io/helm-charts && helm repo update
|
|
161
|
+
helm upgrade --install grafana grafana/grafana \
|
|
158
162
|
--namespace monitoring \
|
|
159
163
|
-f grafana/values-grafana.yaml \
|
|
160
|
-
--version
|
|
164
|
+
--version 6.2.2
|
|
161
165
|
}
|
|
162
166
|
|
|
163
167
|
function monitoringHelp(){
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
cat<<TRAEFIK_CERT
|
|
4
|
+
|
|
5
|
+
*** This is currently informational only ***
|
|
6
|
+
|
|
7
|
+
overwhelm
|
|
8
|
+
helm repo add traefik https://containous.github.io/traefik-helm-chart
|
|
9
|
+
helm repo add jetstack https://charts.jetstack.io
|
|
10
|
+
helm repo update
|
|
11
|
+
|
|
12
|
+
kubectl create namespace cert-manager
|
|
13
|
+
kubectl create secret generic cloudflare --namespace cert-manager \
|
|
14
|
+
--from-literal=dns-token="CLOUD FLARE API TOKEN KEEWEB"
|
|
15
|
+
|
|
16
|
+
kubectl create namespace traefik
|
|
17
|
+
kubectl create secret generic cloudflare --namespace traefik \
|
|
18
|
+
--from-literal=dns-token="CLOUD FLARE API TOKEN KEEWEB"
|
|
19
|
+
|
|
20
|
+
helm install --namespace traefik traefik traefik/traefik -f traefik/traefik-values.yaml
|
|
21
|
+
|
|
22
|
+
helm install \
|
|
23
|
+
cert-manager jetstack/cert-manager \
|
|
24
|
+
--namespace cert-manager \
|
|
25
|
+
--version v1.1.0 \
|
|
26
|
+
--set installCRDs=true
|
|
27
|
+
|
|
28
|
+
# cloudflare->User Profile->API Tokens or get key out of keeweb
|
|
29
|
+
# API Token Permissions
|
|
30
|
+
# Zone - DNS - Edit
|
|
31
|
+
# Zone - Zone - Read
|
|
32
|
+
# Zone Resources:
|
|
33
|
+
# Include - All Zones
|
|
34
|
+
# this token is a cox2m token
|
|
35
|
+
kubectl apply --namespace cert-manager -f cert-manager
|
|
36
|
+
|
|
37
|
+
kubectl describe certificate --namespace cert-manager
|
|
38
|
+
TRAEFIK_CERT
|
package/src/overwhelm.js
CHANGED
|
@@ -230,7 +230,7 @@ ahoy.forEach( ( dir ) => {
|
|
|
230
230
|
} )
|
|
231
231
|
|
|
232
232
|
// we can also apply replaceables to any top level .ovh files to support top level config maps
|
|
233
|
-
glob.sync( '
|
|
233
|
+
glob.sync( '**/*.ovh' ).forEach( ( cfgmap ) => {
|
|
234
234
|
const target = cfgmap.replace(/.ovh$/,'')
|
|
235
235
|
let valuesOut = fs.readFileSync( cfgmap, { encoding : 'utf-8' } )
|
|
236
236
|
valuesOut = doReplacements( valuesOut, over )
|