@leverege/build-tools 2.5.25 → 2.5.26

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.5.25",
3
+ "version": "2.5.26",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- stable/stackdriver-exporter \
109
+ prometheus-community/prometheus-stackdriver-exporter \
107
110
  --namespace monitoring \
108
111
  --values stackdriver-exporter/values.yaml \
109
- --version 1.3.0
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 stable/prometheus \
148
+ helm upgrade --install prometheus prometheus-community/prometheus \
146
149
  --namespace monitoring \
147
150
  -f prometheus/values.yaml \
148
- --version 11.0.0
151
+ --version 13.2.1
149
152
 
150
153
  ## Installing ES exporter
151
- helm upgrade --install elasticsearch-exporter stable/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 3.0.0
157
+ --version 4.1.0
155
158
 
156
159
  ## Install Grafana
157
- helm upgrade --install grafana stable/grafana \
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 5.0.3
164
+ --version 6.2.2
161
165
  }
162
166
 
163
167
  function monitoringHelp(){
@@ -0,0 +1,37 @@
1
+ #!/bin/bash
2
+ #
3
+ cat<<TRAEFIK_CERT
4
+
5
+ *** This is currently informational only ***
6
+
7
+ helm repo add traefik https://containous.github.io/traefik-helm-chart
8
+ helm repo add jetstack https://charts.jetstack.io
9
+ helm repo update
10
+
11
+ kubectl create namespace cert-manager
12
+ kubectl create secret generic cloudflare --namespace cert-manager \
13
+ --from-literal=dns-token='q0Brf_gDhoppt5MgUal7rg61zBOQrDzrgmrKzGRb'
14
+
15
+ kubectl create namespace traefik
16
+ kubectl create secret generic cloudflare --namespace traefik \
17
+ --from-literal=dns-token='q0Brf_gDhoppt5MgUal7rg61zBOQrDzrgmrKzGRb'
18
+
19
+ helm install --namespace traefik traefik traefik/traefik -f traefik/traefik-values.yaml
20
+
21
+ helm install \
22
+ cert-manager jetstack/cert-manager \
23
+ --namespace cert-manager \
24
+ --version v1.1.0 \
25
+ --set installCRDs=true
26
+
27
+ # cloudflare->User Profile->API Tokens or get key out of keeweb
28
+ # API Token Permissions
29
+ # Zone - DNS - Edit
30
+ # Zone - Zone - Read
31
+ # Zone Resources:
32
+ # Include - All Zones
33
+ # this token is a cox2m token
34
+ kubectl apply --namespace cert-manager -f cert-manager
35
+
36
+ kubectl describe certificate
37
+ TRAEFIK_CERT