Skip to content

Commit 87618b5

Browse files
authored
Merge pull request #44116 from digininja/patch-2
show the output from metrics server
2 parents 12bdb8f + 8f1c455 commit 87618b5

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

content/en/docs/tutorials/hello-minikube.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ The minikube tool includes a set of built-in {{< glossary_tooltip text="addons"
238238
storage-provisioner-gluster: disabled
239239
```
240240
241-
2. Enable an addon, for example, `metrics-server`:
241+
1. Enable an addon, for example, `metrics-server`:
242242
243243
```shell
244244
minikube addons enable metrics-server
@@ -250,7 +250,7 @@ The minikube tool includes a set of built-in {{< glossary_tooltip text="addons"
250250
The 'metrics-server' addon is enabled
251251
```
252252
253-
3. View the Pod and Service you created by installing that addon:
253+
1. View the Pod and Service you created by installing that addon:
254254
255255
```shell
256256
kubectl get pod,svc -n kube-system
@@ -279,7 +279,26 @@ The minikube tool includes a set of built-in {{< glossary_tooltip text="addons"
279279
service/monitoring-influxdb ClusterIP 10.111.169.94 <none> 8083/TCP,8086/TCP 26s
280280
```
281281
282-
4. Disable `metrics-server`:
282+
1. Check the output from `metrics-server`:
283+
284+
```shell
285+
kubectl top pods
286+
```
287+
288+
The output is similar to:
289+
290+
```
291+
NAME CPU(cores) MEMORY(bytes)
292+
hello-node-ccf4b9788-4jn97 1m 6Mi
293+
```
294+
295+
If you see the following message, wait, and try again:
296+
297+
```
298+
error: Metrics API not available
299+
```
300+
301+
1. Disable `metrics-server`:
283302
284303
```shell
285304
minikube addons disable metrics-server

0 commit comments

Comments
 (0)