Skip to content

Commit 3a7ce2b

Browse files
Sebastian Florekk8s-ci-robot
Sebastian Florek
authored andcommitted
Make deployment files consistent (#4083)
1 parent 7d0d55a commit 3a7ce2b

10 files changed

+49
-49
lines changed

aio/deploy/alternative.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -223,38 +223,38 @@ kind: Service
223223
apiVersion: v1
224224
metadata:
225225
labels:
226-
k8s-app: kubernetes-metrics-scraper
226+
k8s-app: dashboard-metrics-scraper
227227
name: dashboard-metrics-scraper
228228
namespace: kubernetes-dashboard
229229
spec:
230230
ports:
231231
- port: 8000
232232
targetPort: 8000
233233
selector:
234-
k8s-app: kubernetes-metrics-scraper
234+
k8s-app: dashboard-metrics-scraper
235235

236236
---
237237

238238
kind: Deployment
239239
apiVersion: apps/v1
240240
metadata:
241241
labels:
242-
k8s-app: kubernetes-metrics-scraper
243-
name: kubernetes-metrics-scraper
242+
k8s-app: dashboard-metrics-scraper
243+
name: dashboard-metrics-scraper
244244
namespace: kubernetes-dashboard
245245
spec:
246246
replicas: 1
247247
revisionHistoryLimit: 10
248248
selector:
249249
matchLabels:
250-
k8s-app: kubernetes-metrics-scraper
250+
k8s-app: dashboard-metrics-scraper
251251
template:
252252
metadata:
253253
labels:
254-
k8s-app: kubernetes-metrics-scraper
254+
k8s-app: dashboard-metrics-scraper
255255
spec:
256256
containers:
257-
- name: kubernetes-metrics-scraper
257+
- name: dashboard-metrics-scraper
258258
image: kubernetesui/metrics-scraper:v1.0.0
259259
ports:
260260
- containerPort: 8000

aio/deploy/alternative/07_scraper-service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ kind: Service
1616
apiVersion: v1
1717
metadata:
1818
labels:
19-
k8s-app: kubernetes-metrics-scraper
19+
k8s-app: dashboard-metrics-scraper
2020
name: dashboard-metrics-scraper
2121
namespace: kubernetes-dashboard
2222
spec:
2323
ports:
2424
- port: 8000
2525
targetPort: 8000
2626
selector:
27-
k8s-app: kubernetes-metrics-scraper
27+
k8s-app: dashboard-metrics-scraper

aio/deploy/alternative/08_scraper-deployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ kind: Deployment
1616
apiVersion: apps/v1
1717
metadata:
1818
labels:
19-
k8s-app: kubernetes-metrics-scraper
20-
name: kubernetes-metrics-scraper
19+
k8s-app: dashboard-metrics-scraper
20+
name: dashboard-metrics-scraper
2121
namespace: kubernetes-dashboard
2222
spec:
2323
replicas: 1
2424
revisionHistoryLimit: 10
2525
selector:
2626
matchLabels:
27-
k8s-app: kubernetes-metrics-scraper
27+
k8s-app: dashboard-metrics-scraper
2828
template:
2929
metadata:
3030
labels:
31-
k8s-app: kubernetes-metrics-scraper
31+
k8s-app: dashboard-metrics-scraper
3232
spec:
3333
containers:
34-
- name: kubernetes-metrics-scraper
34+
- name: dashboard-metrics-scraper
3535
image: kubernetesui/metrics-scraper:v1.0.0
3636
ports:
3737
- containerPort: 8000

aio/deploy/head.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ rules:
111111
# Allow Dashboard to get metrics.
112112
- apiGroups: [""]
113113
resources: ["services"]
114-
resourceNames: ["heapster", "dashboard-metrics-scraper"]
114+
resourceNames: ["heapster", "dashboard-metrics-scraper-head"]
115115
verbs: ["proxy"]
116116
- apiGroups: [""]
117117
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"]
119119
verbs: ["get"]
120120

121121
---
@@ -223,38 +223,38 @@ kind: Service
223223
apiVersion: v1
224224
metadata:
225225
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
228228
namespace: kubernetes-dashboard-head
229229
spec:
230230
ports:
231231
- port: 8000
232232
targetPort: 8000
233233
selector:
234-
k8s-app: kubernetes-metrics-scraper
234+
k8s-app: dashboard-metrics-scraper-head
235235

236236
---
237237

238238
kind: Deployment
239239
apiVersion: apps/v1
240240
metadata:
241241
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
244244
namespace: kubernetes-dashboard-head
245245
spec:
246246
replicas: 1
247247
revisionHistoryLimit: 10
248248
selector:
249249
matchLabels:
250-
k8s-app: kubernetes-metrics-scraper
250+
k8s-app: dashboard-metrics-scraper-head
251251
template:
252252
metadata:
253253
labels:
254-
k8s-app: kubernetes-metrics-scraper
254+
k8s-app: dashboard-metrics-scraper-head
255255
spec:
256256
containers:
257-
- name: kubernetes-metrics-scraper
257+
- name: dashboard-metrics-scraper-head
258258
image: kubernetesdashboarddev/dashboard-metrics-sidecar:latest
259259
ports:
260260
- containerPort: 8000

aio/deploy/head/05_dashboard-rbac.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ rules:
3333
# Allow Dashboard to get metrics.
3434
- apiGroups: [""]
3535
resources: ["services"]
36-
resourceNames: ["heapster", "dashboard-metrics-scraper"]
36+
resourceNames: ["heapster", "dashboard-metrics-scraper-head"]
3737
verbs: ["proxy"]
3838
- apiGroups: [""]
3939
resources: ["services/proxy"]
40-
resourceNames: ["heapster", "http:heapster:", "https:heapster:", "dashboard-metrics-scraper", "http:dashboard-metrics-scraper"]
40+
resourceNames: ["heapster", "http:heapster:", "https:heapster:", "dashboard-metrics-scraper-head", "http:dashboard-metrics-scraper-head"]
4141
verbs: ["get"]
4242

4343
---

aio/deploy/head/07_scraper-service.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ kind: Service
1616
apiVersion: v1
1717
metadata:
1818
labels:
19-
k8s-app: kubernetes-metrics-scraper-head
19+
k8s-app: dashboard-metrics-scraper-head
2020
name: dashboard-metrics-scraper-head
21-
namespace: kubernetes-dashboard-head
21+
namespace: dashboard-dashboard-head
2222
spec:
2323
ports:
2424
- port: 8000
2525
targetPort: 8000
2626
selector:
27-
k8s-app: kubernetes-metrics-scraper-head
27+
k8s-app: dashboard-metrics-scraper-head

aio/deploy/head/08_scraper-deployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ kind: Deployment
1616
apiVersion: apps/v1
1717
metadata:
1818
labels:
19-
k8s-app: kubernetes-metrics-scraper-head
20-
name: kubernetes-metrics-scraper-head
19+
k8s-app: dashboard-metrics-scraper-head
20+
name: dashboard-metrics-scraper-head
2121
namespace: kubernetes-dashboard-head
2222
spec:
2323
replicas: 1
2424
revisionHistoryLimit: 10
2525
selector:
2626
matchLabels:
27-
k8s-app: kubernetes-metrics-scraper-head
27+
k8s-app: dashboard-metrics-scraper-head
2828
template:
2929
metadata:
3030
labels:
31-
k8s-app: kubernetes-metrics-scraper-head
31+
k8s-app: dashboard-metrics-scraper-head
3232
spec:
3333
containers:
34-
- name: kubernetes-metrics-scraper-head
34+
- name: dashboard-metrics-scraper-head
3535
image: kubernetesdashboarddev/dashboard-metrics-sidecar:latest
3636
ports:
3737
- containerPort: 8000

aio/deploy/recommended.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -231,38 +231,38 @@ kind: Service
231231
apiVersion: v1
232232
metadata:
233233
labels:
234-
k8s-app: kubernetes-metrics-scraper
234+
k8s-app: dashboard-metrics-scraper
235235
name: dashboard-metrics-scraper
236236
namespace: kubernetes-dashboard
237237
spec:
238238
ports:
239239
- port: 8000
240240
targetPort: 8000
241241
selector:
242-
k8s-app: kubernetes-metrics-scraper
242+
k8s-app: dashboard-metrics-scraper
243243

244244
---
245245

246246
kind: Deployment
247247
apiVersion: apps/v1
248248
metadata:
249249
labels:
250-
k8s-app: kubernetes-metrics-scraper
251-
name: kubernetes-metrics-scraper
250+
k8s-app: dashboard-metrics-scraper
251+
name: dashboard-metrics-scraper
252252
namespace: kubernetes-dashboard
253253
spec:
254254
replicas: 1
255255
revisionHistoryLimit: 10
256256
selector:
257257
matchLabels:
258-
k8s-app: kubernetes-metrics-scraper
258+
k8s-app: dashboard-metrics-scraper
259259
template:
260260
metadata:
261261
labels:
262-
k8s-app: kubernetes-metrics-scraper
262+
k8s-app: dashboard-metrics-scraper
263263
spec:
264264
containers:
265-
- name: kubernetes-metrics-scraper
265+
- name: dashboard-metrics-scraper
266266
image: kubernetesui/metrics-scraper:v1.0.0
267267
ports:
268268
- containerPort: 8000

aio/deploy/recommended/07_scraper-service.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ kind: Service
1616
apiVersion: v1
1717
metadata:
1818
labels:
19-
k8s-app: kubernetes-metrics-scraper-head
20-
name: dashboard-metrics-scraper-head
19+
k8s-app: dashboard-metrics-scraper
20+
name: dashboard-metrics-scraper
2121
namespace: kubernetes-dashboard
2222
spec:
2323
ports:
2424
- port: 8000
2525
targetPort: 8000
2626
selector:
27-
k8s-app: kubernetes-metrics-scraper-head
27+
k8s-app: dashboard-metrics-scraper

aio/deploy/recommended/08_scraper-deployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ kind: Deployment
1616
apiVersion: apps/v1
1717
metadata:
1818
labels:
19-
k8s-app: kubernetes-metrics-scraper
20-
name: kubernetes-metrics-scraper
19+
k8s-app: dashboard-metrics-scraper
20+
name: dashboard-metrics-scraper
2121
namespace: kubernetes-dashboard
2222
spec:
2323
replicas: 1
2424
revisionHistoryLimit: 10
2525
selector:
2626
matchLabels:
27-
k8s-app: kubernetes-metrics-scraper
27+
k8s-app: dashboard-metrics-scraper
2828
template:
2929
metadata:
3030
labels:
31-
k8s-app: kubernetes-metrics-scraper
31+
k8s-app: dashboard-metrics-scraper
3232
spec:
3333
containers:
34-
- name: kubernetes-metrics-scraper
34+
- name: dashboard-metrics-scraper
3535
image: kubernetesui/metrics-scraper:v1.0.0
3636
ports:
3737
- containerPort: 8000

0 commit comments

Comments
 (0)