Skip to content

Commit 4bd0258

Browse files
committed
update
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
1 parent fa1c305 commit 4bd0258

3 files changed

Lines changed: 29 additions & 12 deletions

File tree

content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/http-scaling.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you followed the [Install Ingress Controller](../install-ingress/) guide, you
3434
export INGRESS_IP=$(kubectl get service ingress-nginx-controller --namespace=ingress-nginx -o jsonpath='{.status.loadBalancer.ingress[0].ip}{.status.loadBalancer.ingress[0].hostname}')
3535
echo "Ingress IP/Hostname: $INGRESS_IP"
3636
```
37-
You should now have the correct IP address or hostname stored in the `$INGRESS_IP` environment variable.
37+
You should now have the correct IP address or hostname stored in the `$INGRESS_IP` environment variable. If the command doesn't print any value, please repeat it after some time.
3838

3939
{{% notice Note %}}
4040
If your ingress controller service has a different name or namespace, adjust the command accordingly. For example, some installations use `nginx-ingress-controller` or place it in a different namespace.
@@ -121,6 +121,19 @@ Notes:
121121
- `RESPONSE_DELAY` adds ~300ms latency per request, making scaling effects easier to see.
122122
- The Ingress uses host `application.keda`. To access this app we will use your ingress controller’s IP with a `Host:` header (shown below).
123123

124+
#### Verify the application is running correctly
125+
126+
Let's check that we have 1 replica of the application deployed and ready:
127+
128+
```bash
129+
kubectl get deployment application
130+
```
131+
132+
In the output we should see 1 replica ready:
133+
```
134+
NAME READY UP-TO-DATE AVAILABLE AGE
135+
application 1/1 1 1 3m44s
136+
```
124137

125138
#### Test the application
126139
Hit the app to confirm the app is ready and routing works:
@@ -173,7 +186,7 @@ spec:
173186
service: application-service
174187
port: "8080"
175188
scalingMetric: requestRate
176-
targetValue: "1000"
189+
targetValue: "10"
177190
granularity: 1s
178191
window: 10s
179192
trafficAutowire: ingress
@@ -201,13 +214,15 @@ Becuase we are not sending any traffic to our application, after some time, it s
201214
Run this command and wait until there is 0 replicas:
202215

203216
```bash
204-
kubectl get deployment application -n default --watch
217+
watch kubectl get deployment application -n default
205218
```
206219

207220
You should see similar output:
208221
```bash
222+
Every 2,0s: kubectl get deployment application -n default
223+
209224
NAME READY UP-TO-DATE AVAILABLE AGE
210-
application 0/0 0 0 6m10s
225+
application 0/0 0 0 110s
211226
```
212227

213228
#### Verify the app can scale from zero
@@ -228,7 +243,7 @@ hey -n 10000 -c 150 -host "application.keda" http://$INGRESS_IP
228243
While the load runs, watch replicas change:
229244

230245
```bash
231-
kubectl get deploy application -w
246+
watch kubectl get deployment application -n default
232247
```
233248

234249
Expected behavior:

content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/install-ingress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export INGRESS_IP=$(kubectl get service ingress-nginx-controller --namespace=ing
5757
echo "Ingress IP/Hostname: $INGRESS_IP"
5858
```
5959

60-
This will save the external IP or hostname in the `INGRESS_IP` environment variable and display it. Note the value:
60+
This will save the external IP or hostname in the `INGRESS_IP` environment variable and display it. If the command doesn't print any value, please repeat it after some time. Please note the value:
6161
- **AWS EKS**: You'll see an AWS LoadBalancer hostname (e.g., `a1234567890abcdef-123456789.us-west-2.elb.amazonaws.com`)
6262
- **Google GKE**: You'll see an IP address (e.g., `34.102.136.180`)
6363
- **Azure AKS**: You'll see an IP address (e.g., `20.62.196.123`)

content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/install-kedify-helm.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Install each component into the keda namespace. Replace placeholders where noted
5252
helm upgrade --install keda kedifykeda/keda \
5353
--namespace keda \
5454
--create-namespace \
55-
--set "nodeSelector.kubernetes.io/arch=arm64" \
55+
--devel \
56+
--set "nodeSelector.kubernetes\.io/arch=arm64" \
5657
--set "tolerations[0].key=kubernetes.io/arch" \
5758
--set "tolerations[0].operator=Equal" \
5859
--set "tolerations[0].value=arm64" \
@@ -63,13 +64,14 @@ helm upgrade --install keda kedifykeda/keda \
6364

6465
```bash
6566
helm upgrade --install keda-add-ons-http kedifykeda/keda-add-ons-http \
66-
--namespace keda
67-
--set "interceptor.nodeSelector.kubernetes.io/arch=arm64" \
67+
--namespace keda \
68+
--devel \
69+
--set "interceptor.nodeSelector.kubernetes\.io/arch=arm64" \
6870
--set "interceptor.tolerations[0].key=kubernetes.io/arch" \
6971
--set "interceptor.tolerations[0].operator=Equal" \
7072
--set "interceptor.tolerations[0].value=arm64" \
7173
--set "interceptor.tolerations[0].effect=NoSchedule" \
72-
--set "scaler.nodeSelector.kubernetes.io/arch=arm64" \
74+
--set "scaler.nodeSelector.kubernetes\.io/arch=arm64" \
7375
--set "scaler.tolerations[0].key=kubernetes.io/arch" \
7476
--set "scaler.tolerations[0].operator=Equal" \
7577
--set "scaler.tolerations[0].value=arm64" \
@@ -81,12 +83,12 @@ helm upgrade --install keda-add-ons-http kedifykeda/keda-add-ons-http \
8183
```bash
8284
helm upgrade --install kedify-agent kedifykeda/kedify-agent \
8385
--namespace keda \
84-
--set "agent.nodeSelector.kubernetes.io/arch=arm64" \
86+
--set "agent.nodeSelector.kubernetes\.io/arch=arm64" \
8587
--set "agent.tolerations[0].key=kubernetes.io/arch" \
8688
--set "agent.tolerations[0].operator=Equal" \
8789
--set "agent.tolerations[0].value=arm64" \
8890
--set "agent.tolerations[0].effect=NoSchedule" \
89-
--set "agent.kedifyProxy.globalValues.nodeSelector.kubernetes.io/arch=arm64" \
91+
--set "agent.kedifyProxy.globalValues.nodeSelector.kubernetes\.io/arch=arm64" \
9092
--set "agent.kedifyProxy.globalValues.tolerations[0].key=kubernetes.io/arch" \
9193
--set "agent.kedifyProxy.globalValues.tolerations[0].operator=Equal" \
9294
--set "agent.kedifyProxy.globalValues.tolerations[0].value=arm64" \

0 commit comments

Comments
 (0)