Skip to content

Commit 28ae9f5

Browse files
committed
ReplicaSet wording
1 parent 996dadc commit 28ae9f5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

content/en/tko/session-5/docs/deploy-loadgen.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
title: Deploy Load Generator
33
linkTitle: Deploy Load Generator
4-
weight: 4
4+
weight: 5
55
---
66

7+
Now to see how the autoscaler reacts to increased load. To do this, you'll start a different Pod to act as a client. The container within the client Pod runs in an infinite loop, sending queries to the php-apache service.
8+
79
## 1. Create loadgen YAML
810

911
In the terminal window create a new file using (`vim` or `nano`) called `loadgen.yaml` and copy the following YAML into the file.
@@ -49,6 +51,10 @@ kubectl apply -f loadgen.yaml --namespace loadgen
4951

5052
## 4. Scale the load generator
5153

54+
A ReplicaSet is a process that runs multiple instances of a Pod and keeps the specified number of Pods constant. Its purpose is to maintain the specified number of Pod instances running in a cluster at any given time to prevent users from losing access to their application when a Pod fails or is inaccessible.
55+
56+
ReplicaSet helps bring up a new instance of a Pod when the existing one fails, scale it up when the running instances are not up to the specified number, and scale down or delete Pods if another instance with the same label is created. A ReplicaSet ensures that a specified number of Pod replicas are running continuously and helps with load-balancing in case of an increase in resource usage.
57+
5258
``` text
5359
kubectl scale deployment/loadgen --replicas 4 -n loadgen
5460
```

content/en/tko/session-5/docs/setup-hpa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Setup Horizontal Pod Autoscaler
33
linkTitle: Setup HPA
4-
weight: 5
4+
weight: 4
55
---
66

77
In Kubernetes, a HorizontalPodAutoscaler automatically updates a workload resource (such as a Deployment or StatefulSet), with the aim of automatically scaling the workload to match demand.

0 commit comments

Comments
 (0)