From 251d746c6ec2c77a7c51beaecfba6697351cf545 Mon Sep 17 00:00:00 2001 From: Kai Chen Date: Wed, 14 Feb 2018 14:57:50 -0800 Subject: [PATCH] Inline some content for the HPA walkthrough, since the original files have been removed (#7414) --- .../horizontal-pod-autoscale-walkthrough.md | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md b/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md index 05ed55219c..fb0165d0c5 100644 --- a/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md +++ b/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md @@ -29,8 +29,25 @@ See the [Horizontal Pod Autoscaler user guide](/docs/tasks/run-application/horiz ## Step One: Run & expose php-apache server To demonstrate Horizontal Pod Autoscaler we will use a custom docker image based on the php-apache image. -The Dockerfile can be found [here](/docs/user-guide/horizontal-pod-autoscaling/image/Dockerfile). -It defines an [index.php](/docs/user-guide/horizontal-pod-autoscaling/image/index.php) page which performs some CPU intensive computations. +The Dockerfile has the following content: + +``` +FROM php:5-apache +ADD index.php /var/www/html/index.php +RUN chmod a+rx index.php +``` + +It defines an index.php page which performs some CPU intensive computations: + +``` + +``` First, we will start a deployment running the image and expose it as a service: