@leverege/build-tools 2.0.14 → 2.0.15

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/helmup +28 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "A package for development build tools.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/helmup CHANGED
@@ -79,23 +79,21 @@ function installMonitoringCharts(){
79
79
  fi
80
80
 
81
81
  ## Install Prometheus
82
- helm upgrade --install prometheus --namespace monitoring stable/prometheus -f prometheus/values.yaml
82
+ helm upgrade --install prometheus stable/prometheus \
83
+ --namespace monitoring \
84
+ -f prometheus/values.yaml \
85
+ --version 11.0.0
83
86
 
84
87
  ## Installing ES exporter
85
88
  helm upgrade --install elasticsearch-exporter stable/elasticsearch-exporter \
86
89
  --namespace monitoring \
87
- --set-string service.annotations."prometheus\.io/port"="9108" \
88
- --set-string service.annotations."prometheus\.io/scrape"="true" \
89
- --set es.uri="http://databases-elasticsearch.default.svc.cluster.local:9200" \
90
+ -f elasticsearch-exporter/values-es-exporter.yaml \
90
91
  --version 3.0.0
91
92
 
92
93
  ## Install Grafana
93
94
  helm upgrade --install grafana stable/grafana \
94
95
  --namespace monitoring \
95
- --set service.type="NodePort" \
96
- --set service.port="9000" \
97
- --set persistence.enabled="true" \
98
- --set persistence.storageClassName="ssd" \
96
+ -f grafana/values-grafana.yaml \
99
97
  --version 5.0.3
100
98
 
101
99
  ## Print out instructions
@@ -251,6 +249,28 @@ EOK8S
251
249
  exit 1
252
250
  fi
253
251
 
252
+ OLD_MONITORING="${GITTOP}/values-monitoring.yaml"
253
+ if [ -f "$OLD_MONITORING" ];
254
+ then
255
+ cat<<OLDMON
256
+
257
+ $RED_ERROR Old monitoring setup detected
258
+
259
+ Monitoring now runs in the monitoring namespace, centrally managed via helmup.
260
+
261
+ To migrate to the new setup:
262
+ 1) Delete values-monitoring.yaml
263
+ 2) Grab prometheus/values-local.yaml from master branch (modify as needed for opsgenie config)
264
+ 3) Grab stackdriver-exporter/values-local.yaml from master branch
265
+ 4) Create grafana dir => add .nohelm and values-grafana.yaml
266
+ 5) Create elasticsearch-exporter dir => add .nohelm and values-es-exporter.yaml
267
+
268
+ Now run helmup monitoring and follow directions.
269
+
270
+ OLDMON
271
+ exit 1
272
+ fi
273
+
254
274
  npm run ahoy
255
275
  [ $? -ne 0 ] && printf "\n\n***Aborting helmup...\n\n" && exit 1
256
276