From 4a1a8eb19030d06ee0f52063fb809094dba43233 Mon Sep 17 00:00:00 2001 From: James Spurin Date: Sat, 25 Apr 2020 17:58:18 +0100 Subject: [PATCH 1/2] remove ns specifics for example --- .../run-application/horizontal-pod-autoscale-walkthrough.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md b/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md index 5b463010846..71357f34164 100644 --- a/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md +++ b/content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md @@ -119,7 +119,7 @@ kubectl run --generator=run-pod/v1 -it --rm load-generator --image=busybox /bin/ Hit enter for command prompt -while true; do wget -q -O- http://php-apache.default.svc.cluster.local; done +while true; do wget -q -O- http://php-apache; done ``` Within a minute or so, we should see the higher CPU load by executing: @@ -203,7 +203,6 @@ apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: name: php-apache - namespace: default spec: scaleTargetRef: apiVersion: apps/v1 @@ -296,7 +295,6 @@ apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: name: php-apache - namespace: default spec: scaleTargetRef: apiVersion: apps/v1 From c8975f90c7498e69ede5ec9b6b531e862fa2a788 Mon Sep 17 00:00:00 2001 From: James Spurin Date: Sat, 25 Apr 2020 18:16:44 +0100 Subject: [PATCH 2/2] remove default namespace from referenced yaml file --- content/en/examples/application/hpa/php-apache.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/content/en/examples/application/hpa/php-apache.yaml b/content/en/examples/application/hpa/php-apache.yaml index c73ae7d631b..f3f1ef5d4f9 100644 --- a/content/en/examples/application/hpa/php-apache.yaml +++ b/content/en/examples/application/hpa/php-apache.yaml @@ -2,7 +2,6 @@ apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: php-apache - namespace: default spec: scaleTargetRef: apiVersion: apps/v1