Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
37ef5dee
Commit
37ef5dee
authored
Oct 23, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Horizontal pod autoscaling example moved to user guide.
Horizontal pod autoscaling example moved to user guide. Part of #15652.
parent
038f871c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
README.md
docs/user-guide/horizontal-pod-autoscaling/README.md
+6
-4
hpa-php-apache.yaml
...user-guide/horizontal-pod-autoscaling/hpa-php-apache.yaml
+0
-0
Dockerfile
docs/user-guide/horizontal-pod-autoscaling/image/Dockerfile
+0
-0
index.php
docs/user-guide/horizontal-pod-autoscaling/image/index.php
+0
-0
rc-php-apache.yaml
.../user-guide/horizontal-pod-autoscaling/rc-php-apache.yaml
+0
-0
No files found.
examples/extensions
/horizontal-pod-autoscaling/README.md
→
docs/user-guide
/horizontal-pod-autoscaling/README.md
View file @
37ef5dee
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
<strong>
<strong>
The latest 1.0.x release of this document can be found
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/
examples/extensions
/horizontal-pod-autoscaling/README.md
)
.
[
here
](
http://releases.k8s.io/release-1.0/
docs/user-guide
/horizontal-pod-autoscaling/README.md
)
.
Documentation for other releases can be found at
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
[
releases.k8s.io
](
http://releases.k8s.io
)
.
...
@@ -52,7 +52,7 @@ It defines [index.php](image/index.php) page which performs some CPU intensive c
...
@@ -52,7 +52,7 @@ It defines [index.php](image/index.php) page which performs some CPU intensive c
First, we will start a replication controller running the image and expose it as an external service:
First, we will start a replication controller running the image and expose it as an external service:
```
console
```
console
$
kubectl create
-f
examples/extensions
/horizontal-pod-autoscaling/rc-php-apache.yaml
$
kubectl create
-f
docs/user-guide
/horizontal-pod-autoscaling/rc-php-apache.yaml
replicationcontrollers/php-apache
replicationcontrollers/php-apache
$
kubectl expose rc php-apache
--port
=
80
--type
=
LoadBalancer
$
kubectl expose rc php-apache
--port
=
80
--type
=
LoadBalancer
...
@@ -125,7 +125,7 @@ See [here](../../../docs/proposals/horizontal-pod-autoscaler.md#autoscaling-algo
...
@@ -125,7 +125,7 @@ See [here](../../../docs/proposals/horizontal-pod-autoscaler.md#autoscaling-algo
We will create the autoscaler by executing the following command:
We will create the autoscaler by executing the following command:
```
console
```
console
$
kubectl create
-f
examples/extensions
/horizontal-pod-autoscaling/hpa-php-apache.yaml
$
kubectl create
-f
docs/user-guide
/horizontal-pod-autoscaling/hpa-php-apache.yaml
horizontalpodautoscaler "php-apache" created
horizontalpodautoscaler "php-apache" created
```
```
...
@@ -201,6 +201,8 @@ php-apache php-apache gcr.io/google_containers/hpa-example run=php-apach
...
@@ -201,6 +201,8 @@ php-apache php-apache gcr.io/google_containers/hpa-example run=php-apach
As we see, in the presented case CPU utilization dropped to 0, and the number of replicas dropped to 1.
As we see, in the presented case CPU utilization dropped to 0, and the number of replicas dropped to 1.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
<!-- END MUNGE: GENERATED_ANALYTICS -->
examples/extensions
/horizontal-pod-autoscaling/hpa-php-apache.yaml
→
docs/user-guide
/horizontal-pod-autoscaling/hpa-php-apache.yaml
View file @
37ef5dee
File moved
examples/extensions
/horizontal-pod-autoscaling/image/Dockerfile
→
docs/user-guide
/horizontal-pod-autoscaling/image/Dockerfile
View file @
37ef5dee
File moved
examples/extensions
/horizontal-pod-autoscaling/image/index.php
→
docs/user-guide
/horizontal-pod-autoscaling/image/index.php
View file @
37ef5dee
File moved
examples/extensions
/horizontal-pod-autoscaling/rc-php-apache.yaml
→
docs/user-guide
/horizontal-pod-autoscaling/rc-php-apache.yaml
View file @
37ef5dee
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment