@@ -111,11 +111,11 @@ rules:
111
111
# Allow Dashboard to get metrics.
112
112
- apiGroups : [""]
113
113
resources : ["services"]
114
- resourceNames : ["heapster", "dashboard-metrics-scraper"]
114
+ resourceNames : ["heapster", "dashboard-metrics-scraper-head "]
115
115
verbs : ["proxy"]
116
116
- apiGroups : [""]
117
117
resources : ["services/proxy"]
118
- resourceNames : ["heapster", "http:heapster:", "https:heapster:", "dashboard-metrics-scraper", "http:dashboard-metrics-scraper"]
118
+ resourceNames : ["heapster", "http:heapster:", "https:heapster:", "dashboard-metrics-scraper-head ", "http:dashboard-metrics-scraper-head "]
119
119
verbs : ["get"]
120
120
121
121
---
@@ -223,38 +223,38 @@ kind: Service
223
223
apiVersion : v1
224
224
metadata :
225
225
labels :
226
- k8s-app : kubernetes -metrics-scraper
227
- name : dashboard-metrics-scraper
226
+ k8s-app : dashboard -metrics-scraper-head
227
+ name : dashboard-metrics-scraper-head
228
228
namespace : kubernetes-dashboard-head
229
229
spec :
230
230
ports :
231
231
- port : 8000
232
232
targetPort : 8000
233
233
selector :
234
- k8s-app : kubernetes -metrics-scraper
234
+ k8s-app : dashboard -metrics-scraper-head
235
235
236
236
---
237
237
238
238
kind : Deployment
239
239
apiVersion : apps/v1
240
240
metadata :
241
241
labels :
242
- k8s-app : kubernetes -metrics-scraper
243
- name : kubernetes -metrics-scraper
242
+ k8s-app : dashboard -metrics-scraper-head
243
+ name : dashboard -metrics-scraper-head
244
244
namespace : kubernetes-dashboard-head
245
245
spec :
246
246
replicas : 1
247
247
revisionHistoryLimit : 10
248
248
selector :
249
249
matchLabels :
250
- k8s-app : kubernetes -metrics-scraper
250
+ k8s-app : dashboard -metrics-scraper-head
251
251
template :
252
252
metadata :
253
253
labels :
254
- k8s-app : kubernetes -metrics-scraper
254
+ k8s-app : dashboard -metrics-scraper-head
255
255
spec :
256
256
containers :
257
- - name : kubernetes -metrics-scraper
257
+ - name : dashboard -metrics-scraper-head
258
258
image : kubernetesdashboarddev/dashboard-metrics-sidecar:latest
259
259
ports :
260
260
- containerPort : 8000
0 commit comments