Skip to content

Commit b942e01

Browse files
authored
Merge pull request #35745 from Rishit-dagli/Rishit-dagli-hpa
Remove unnecessary instructions for HPA task
2 parents ff853e7 + aa27eb3 commit b942e01

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,8 @@ To learn how to deploy the Metrics Server, see the
5454

5555
## Run and expose php-apache server
5656

57-
To demonstrate a HorizontalPodAutoscaler, you will first make a custom container image that uses
58-
the `php-apache` image from Docker Hub as its starting point. The `Dockerfile` is ready-made for you,
59-
and has the following content:
60-
61-
```dockerfile
62-
FROM php:5-apache
63-
COPY index.php /var/www/html/index.php
64-
RUN chmod a+rx index.php
65-
```
66-
67-
This code defines a simple `index.php` page that performs some CPU intensive computations,
68-
in order to simulate load in your cluster.
69-
70-
```php
71-
<?php
72-
$x = 0.0001;
73-
for ($i = 0; $i <= 1000000; $i++) {
74-
$x += sqrt($x);
75-
}
76-
echo "OK!";
77-
?>
78-
```
79-
80-
Once you have made that container image, start a Deployment that runs a container using the
81-
image you made, and expose it as a {{< glossary_tooltip term_id="service">}}
57+
To demonstrate a HorizontalPodAutoscaler, you will first start a Deployment that runs a container using the
58+
`hpa-example` image, and expose it as a {{< glossary_tooltip term_id="service">}}
8259
using the following manifest:
8360

8461
{{< codenew file="application/php-apache.yaml" >}}

content/en/examples/application/php-apache.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
spec:
1515
containers:
1616
- name: php-apache
17-
image: k8s.gcr.io/hpa-example
17+
image: registry.k8s.io/hpa-example
1818
ports:
1919
- containerPort: 80
2020
resources:

0 commit comments

Comments
 (0)