From 21f09fd6ccac854aa0848fdc1de463627c02f4f3 Mon Sep 17 00:00:00 2001 From: Kenblair1226 Date: Fri, 18 Aug 2017 02:40:55 +0800 Subject: [PATCH] Modify the wrong hpa command. (#5009) --- .../run-application/horizontal-pod-autoscale-walkthrough.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md b/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md index b44baa485f..92c9c1e0f1 100644 --- a/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md +++ b/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md @@ -134,7 +134,7 @@ by making use of the `autoscaling/v2alpha1` API version. First, get the YAML of your HorizontalPodAutoscaler in the `autoscaling/v2alpha1` form: ```shell -$ kubectl get hpa.autoscaling.v2alpha1 -o yaml > /tmp/hpa-v2.yaml +$ kubectl get hpa.v2alpha1.autoscaling -o yaml > /tmp/hpa-v2.yaml ``` Open the `/tmp/hpa-v2.yaml` file in an editor, and you should see YAML which looks like this: