Skip to content

Commit 2a63ec7

Browse files
committed
Changes kube-prometheus-stack to individual prometheus and grafana charts
Deploying this configuration manually works
1 parent 2f0e56f commit 2a63ec7

File tree

6 files changed

+118
-115
lines changed

6 files changed

+118
-115
lines changed

Diff for: deploy-aws/staging-install.yaml

+17-18
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,20 @@ binderhub:
2727
hostLibDir: /var/lib/dind/stage
2828
hostSocketDir: /var/run/dind/stage
2929

30-
kube-prometheus-stack:
31-
prometheus:
32-
resources:
33-
limits:
34-
cpu: 500m
35-
memory: 1Gi
36-
requests:
37-
cpu: 0m
38-
memory: 0Gi
39-
grafana:
40-
resources:
41-
resources:
42-
limits:
43-
cpu: 500m
44-
memory: 1Gi
45-
requests:
46-
cpu: 0m
47-
memory: 0Gi
30+
prometheus:
31+
resources:
32+
limits:
33+
cpu: 500m
34+
memory: 1Gi
35+
requests:
36+
cpu: 0m
37+
memory: 0Gi
38+
grafana:
39+
resources:
40+
resources:
41+
limits:
42+
cpu: 500m
43+
memory: 1Gi
44+
requests:
45+
cpu: 0m
46+
memory: 0Gi

Diff for: deploy-aws/staging.yaml

+26-30
Original file line numberDiff line numberDiff line change
@@ -86,33 +86,29 @@ binderhub:
8686
# This makes the gateway available at ${HUB_URL}/services/dask-gateway
8787
url: http://traefik-staging-dask-gateway.staging
8888

89-
kube-prometheus-stack:
90-
prometheus:
91-
resources:
92-
limits:
93-
cpu: 500m
94-
memory: 1Gi
95-
requests:
96-
cpu: 0m
97-
memory: 0Gi
98-
grafana:
99-
resources:
100-
resources:
101-
limits:
102-
cpu: 500m
103-
memory: 1Gi
104-
requests:
105-
cpu: 0m
106-
memory: 0Gi
107-
ingress:
108-
enabled: true
109-
hosts:
110-
- grafana.staging.aws-uswest2-binder.pangeo.io
111-
annotations:
112-
kubernetes.io/ingress.class: nginx
113-
kubernetes.io/tls-acme: "true"
114-
cert-manager.io/issuer: letsencrypt-production
115-
tls:
116-
- secretName: grafana.staging.aws-uswest2-binder.pangeo.io-tls
117-
hosts:
118-
- grafana.staging.aws-uswest2-binder.pangeo.io
89+
prometheus:
90+
resources:
91+
limits:
92+
cpu: 500m
93+
memory: 1Gi
94+
requests:
95+
cpu: 0m
96+
memory: 0Gi
97+
grafana:
98+
resources:
99+
resources:
100+
limits:
101+
cpu: 500m
102+
memory: 1Gi
103+
requests:
104+
cpu: 0m
105+
memory: 0Gi
106+
ingress:
107+
enabled: true
108+
path: /grafana/?(.*)
109+
hosts:
110+
- staging.aws-uswest2-binder.pangeo.io
111+
annotations:
112+
kubernetes.io/ingress.class: nginx
113+
nginx.ingress.kubernetes.io/rewrite-target: /$1
114+
nginx.ingress.kubernetes.io/use-regex: "true"

Diff for: k8s-aws/readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ helm version #>3
2828
helm repo add pangeo https://pangeo-data.github.io/helm-chart/
2929
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
3030
helm repo add dask-gateway https://dask.org/dask-gateway-helm-repo/
31+
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
32+
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
33+
helm repo add grafana https://grafana.github.io/helm-charts
3134
helm repo update
3235
cd pangeo-binder/pangeo-binder
3336
helm dependency update

Diff for: pangeo-binder/requirements.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ dependencies:
1212
- name: dask-gateway
1313
version: "0.8.0"
1414
repository: 'https://dask.org/dask-gateway-helm-repo/'
15-
- name: kube-prometheus-stack
16-
version: 10.0.1
17-
repository: "https://prometheus-community.github.io/helm-charts"
15+
- name: prometheus
16+
version: 11.16.2
17+
repository: https://prometheus-community.github.io/helm-charts
18+
- name: grafana
19+
version: 5.8.10
20+
repository: https://grafana.github.io/helm-charts

Diff for: pangeo-binder/values.yaml

+66-64
Original file line numberDiff line numberDiff line change
@@ -272,70 +272,72 @@ dask-gateway:
272272
# c.UserLimits.max_memory = "400 G"
273273
# c.UserLimits.max_clusters = 1
274274

275-
kube-prometheus-stack:
276-
prometheus:
277-
alertmanager:
278-
enabled: false
279-
nodeExporter:
275+
prometheus:
276+
alertmanager:
277+
enabled: false
278+
nodeExporter:
279+
enabled: true
280+
tolerations:
281+
- operator: "Exists"
282+
updateStrategy:
283+
type: RollingUpdate
284+
pushgateway:
285+
enabled: false
286+
rbac:
287+
create: true
288+
server:
289+
enabled: true
290+
retention: 30d
291+
statefulSet:
280292
enabled: true
281-
tolerations:
282-
- operator: "Exists"
283-
updateStrategy:
284-
type: RollingUpdate
285-
pushgateway:
286-
enabled: false
287-
rbac:
288-
create: true
289-
server:
293+
persistentVolume:
290294
enabled: true
291-
retention: 30d
292-
statefulSet:
293-
enabled: true
294-
persistentVolume:
295-
enabled: true
296-
ingress:
297-
enabled: false
298-
resources:
299-
limits:
300-
cpu: 500m
301-
memory: 1Gi
302-
requests:
303-
cpu: 100m
304-
memory: 1Gi
305-
306-
grafana:
307-
service:
308-
type: LoadBalancer
309-
annotations:
310-
prometheus.io/scrape: "true"
311-
prometheus.io/path: "/metrics"
312-
resources:
313-
limits:
314-
cpu: 500m
315-
memory: 1Gi
316-
requests:
317-
cpu: 100m
318-
memory: 256Mi
319-
deploymentStrategy:
320-
type: Recreate
321-
persistence:
322-
type: pvc
295+
ingress:
323296
enabled: false
324-
dashboardProviders:
325-
dashboardproviders.yaml:
326-
apiVersion: 1
327-
providers:
328-
- name: 'default'
329-
orgId: 1
330-
folder: ''
331-
type: file
332-
disableDeletion: true
333-
editable: true
334-
options:
335-
path: /var/lib/grafana/dashboards/default
336-
dashboards:
337-
default:
338-
cluster-monitoring-for-kubernetes:
339-
gnetId: 10000
340-
revision: 1
341-
datasource: Prometheus
297+
resources:
298+
limits:
299+
cpu: 500m
300+
memory: 1Gi
301+
requests:
302+
cpu: 100m
303+
memory: 1Gi
304+
305+
grafana:
306+
service:
307+
annotations:
308+
prometheus.io/scrape: "true"
309+
prometheus.io/path: "/metrics"
310+
resources:
311+
limits:
312+
cpu: 500m
313+
memory: 1Gi
314+
requests:
315+
cpu: 100m
316+
memory: 256Mi
317+
deploymentStrategy:
318+
type: Recreate
319+
persistence:
320+
type: pvc
321+
enabled: false
322+
dashboardProviders:
323+
dashboardproviders.yaml:
324+
apiVersion: 1
325+
providers:
326+
- name: 'default'
327+
orgId: 1
328+
folder: ''
329+
type: file
330+
disableDeletion: true
331+
editable: true
332+
options:
333+
path: /var/lib/grafana/dashboards/default
334+
dashboards:
335+
default:
336+
cluster-monitoring-for-kubernetes:
337+
gnetId: 10000
338+
revision: 1
339+
datasource: Prometheus
340+
dask:
341+
gnetId: 12591
342+
revision: 2
343+
datasource: Prometheus

Diff for: secrets-aws/staging.yaml

170 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)