You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/http-scaling.md
+20-5Lines changed: 20 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ If you followed the [Install Ingress Controller](../install-ingress/) guide, you
34
34
export INGRESS_IP=$(kubectl get service ingress-nginx-controller --namespace=ingress-nginx -o jsonpath='{.status.loadBalancer.ingress[0].ip}{.status.loadBalancer.ingress[0].hostname}')
35
35
echo"Ingress IP/Hostname: $INGRESS_IP"
36
36
```
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.
38
38
39
39
{{% notice Note %}}
40
40
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:
121
121
-`RESPONSE_DELAY` adds ~300ms latency per request, making scaling effects easier to see.
122
122
- The Ingress uses host `application.keda`. To access this app we will use your ingress controller’s IP with a `Host:` header (shown below).
123
123
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
+
```
124
137
125
138
#### Test the application
126
139
Hit the app to confirm the app is ready and routing works:
@@ -173,7 +186,7 @@ spec:
173
186
service: application-service
174
187
port: "8080"
175
188
scalingMetric: requestRate
176
-
targetValue: "1000"
189
+
targetValue: "10"
177
190
granularity: 1s
178
191
window: 10s
179
192
trafficAutowire: ingress
@@ -201,13 +214,15 @@ Becuase we are not sending any traffic to our application, after some time, it s
201
214
Run this command and wait until there is 0 replicas:
202
215
203
216
```bash
204
-
kubectl get deployment application -n default --watch
217
+
watch kubectl get deployment application -n default
205
218
```
206
219
207
220
You should see similar output:
208
221
```bash
222
+
Every 2,0s: kubectl get deployment application -n default
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/install-ingress.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ export INGRESS_IP=$(kubectl get service ingress-nginx-controller --namespace=ing
57
57
echo"Ingress IP/Hostname: $INGRESS_IP"
58
58
```
59
59
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:
61
61
-**AWS EKS**: You'll see an AWS LoadBalancer hostname (e.g., `a1234567890abcdef-123456789.us-west-2.elb.amazonaws.com`)
62
62
-**Google GKE**: You'll see an IP address (e.g., `34.102.136.180`)
63
63
-**Azure AKS**: You'll see an IP address (e.g., `20.62.196.123`)
0 commit comments