Skip to content

Commit 6fa0b98

Browse files
authored
Prepare release v0.10.0 (#1260)
Signed-off-by: Jan Wozniak <[email protected]>
1 parent d15f442 commit 6fa0b98

File tree

8 files changed

+181
-11
lines changed

8 files changed

+181
-11
lines changed

.github/ISSUE_TEMPLATE/2_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ body:
5252
label: "HTTP Add-on Version"
5353
description: "What version of the KEDA HTTP Add-on are you running?"
5454
options:
55+
- "0.10.0"
5556
- "0.9.0"
5657
- "0.8.0"
57-
- "0.7.0"
5858
- "Other"
5959
validations:
6060
required: false

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This changelog keeps track of work items that have been completed and are ready
1010
## History
1111

1212
- [Unreleased](#unreleased)
13+
- [v0.10.0](#v0100)
1314
- [v0.9.0](#v090)
1415
- [v0.8.0](#v080)
1516
- [v0.7.0](#v070)
@@ -18,17 +19,13 @@ This changelog keeps track of work items that have been completed and are ready
1819

1920
## Unreleased
2021

21-
- **General**: Fix infrastructure crashes when deleting ScaledObject while scaling
22-
2322
### Breaking Changes
2423

2524
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
2625

2726
### New
2827

2928
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
30-
- **General**: Fix kubectl active printcolumn ([#1211](https://github.com/kedacore/http-add-on/issues/1211))
31-
- **General**: Support InitialCooldownPeriod for HTTPScaledObject [#1213](https://github.com/kedacore/http-add-on/issues/1213)
3229

3330
### Improvements
3431

@@ -46,6 +43,18 @@ This changelog keeps track of work items that have been completed and are ready
4643

4744
- **Documentation**: Correct the service name used in the walkthrough documentation ([#1244](https://github.com/kedacore/http-add-on/pull/1244))
4845

46+
## v0.10.0
47+
48+
### New
49+
50+
- **General**: Fix infrastructure crashes when deleting ScaledObject while scaling
51+
- **General**: Fix kubectl active printcolumn ([#1211](https://github.com/kedacore/http-add-on/issues/1211))
52+
- **General**: Support InitialCooldownPeriod for HTTPScaledObject [#1213](https://github.com/kedacore/http-add-on/issues/1213)
53+
54+
### Other
55+
56+
- **Documentation**: Correct the service name used in the walkthrough documentation ([#1244](https://github.com/kedacore/http-add-on/pull/1244))
57+
4958
## v0.9.0
5059

5160
### Breaking Changes

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ K9s integrates Hey, a CLI tool to benchmark HTTP endpoints similar to AB bench.
8989
```
9090
- You'll need to clone the repository to get access to this chart. If you have your own Deployment and Service installed, you can go right to creating an HTTPScaledObject. We use the provided sample HTTPScaledObject -
9191
```
92-
$ kubectl apply -n $NAMESPACE -f examples/v0.9.0/httpscaledobject.yaml
92+
$ kubectl apply -n $NAMESPACE -f examples/v0.10.0/httpscaledobject.yaml
9393
```
9494
- Testing Your Installation using k9s:
9595
```

RELEASE-PROCESS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Add the new released version to the list in `KEDA Version` dropdown in [2_bug_re
2525
Update the links to current version within the file `walkthrough.md`
2626

2727
> ```console
28-
> kubectl apply -n $NAMESPACE -f examples/v0.9.0/httpscaledobject.yaml
28+
> kubectl apply -n $NAMESPACE -f examples/v0.10.0/httpscaledobject.yaml
2929
> ```
3030
3131
> >If you'd like to learn more about this object, please see the [`HTTPScaledObject` reference](THE REFERENCE).

docs/install.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ helm upgrade kedahttp ./charts/keda-add-ons-http \
7575

7676
| HTTP Add-On version | KEDA version | Kubernetes version |
7777
|---------------------|-------------------|--------------------|
78-
| main | v2.16 | v1.29 - v1.31 |
79-
| 0.9.0 | v2.14 - v2.16 | v1.29 - v1.31 |
78+
| main | v2.16 | v1.30 - v1.32 |
79+
| 0.10.0 | v2.16 | v1.30 - v1.32 |
80+
| 0.9.0 | v2.16 | v1.29 - v1.31 |
8081
| 0.8.0 | v2.14 | v1.27 - v1.29 |
8182
| 0.7.0 | v2.13 | v1.27 - v1.29 |
8283
| 0.6.0 | v2.12 | v1.26 - v1.28 |
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# The `HTTPScaledObject`
2+
3+
>This document reflects the specification of the `HTTPScaledObject` resource for the `v0.10.0` version.
4+
5+
Each `HTTPScaledObject` looks approximately like the below:
6+
7+
```yaml
8+
kind: HTTPScaledObject
9+
apiVersion: http.keda.sh/v1alpha1
10+
metadata:
11+
name: xkcd
12+
annotations:
13+
httpscaledobject.keda.sh/skip-scaledobject-creation: "false"
14+
spec:
15+
hosts:
16+
- myhost.com
17+
pathPrefixes:
18+
- /test
19+
scaleTargetRef:
20+
name: xkcd
21+
kind: Deployment
22+
apiVersion: apps/v1
23+
service: xkcd
24+
port: 8080
25+
replicas:
26+
min: 5
27+
max: 10
28+
scaledownPeriod: 300
29+
scalingMetric: # requestRate and concurrency are mutually exclusive
30+
requestRate:
31+
granularity: 1s
32+
targetValue: 100
33+
window: 1m
34+
concurrency:
35+
targetValue: 100
36+
```
37+
38+
This document is a narrated reference guide for the `HTTPScaledObject`.
39+
40+
## `httpscaledobject.keda.sh/skip-scaledobject-creation` annotation
41+
42+
This annotation will disable the ScaledObject generation and management but keeping the routing and metrics available. This is done removing the current ScaledObject if it has been already created, allowing to use user managed ScaledObjects pointing the add-on scaler directly (supporting all the ScaledObject configurations and multiple triggers). You can read more about this [here](./../../walkthrough.md#integrating-http-add-on-scaler-with-other-keda-scalers)
43+
44+
45+
## `hosts`
46+
47+
These are the hosts to apply this scaling rule to. All incoming requests with one of these values in their `Host` header will be forwarded to the `Service` and port specified in the below `scaleTargetRef`, and that same `scaleTargetRef`'s workload will be scaled accordingly.
48+
49+
## `pathPrefixes`
50+
51+
>Default: "/"
52+
53+
These are the paths to apply this scaling rule to. All incoming requests with one of these values as path prefix will be forwarded to the `Service` and port specified in the below `scaleTargetRef`, and that same `scaleTargetRef`'s workload will be scaled accordingly.
54+
55+
## `scaleTargetRef`
56+
57+
This is the primary and most important part of the `spec` because it describes:
58+
59+
1. The incoming host to apply this scaling rule to.
60+
2. What workload to scale.
61+
3. The service to which to route HTTP traffic.
62+
63+
### `name`
64+
65+
This is the name of the workload to scale. It must exist in the same namespace as this `HTTPScaledObject` and shouldn't be managed by any other autoscaling system. This means that there should not be any `ScaledObject` already created for this workload. The HTTP Add-on will manage a `ScaledObject` internally.
66+
67+
### `kind`
68+
69+
This is the kind of the workload to scale.
70+
71+
### `apiVersion`
72+
73+
This is the apiVersion of the workload to scale.
74+
75+
### `service`
76+
77+
This is the name of the service to route traffic to. The add-on will create autoscaling and routing components that route to this `Service`. It must exist in the same namespace as this `HTTPScaledObject` and should route to the same `Deployment` as you entered in the `deployment` field.
78+
79+
### `port`
80+
81+
This is the port to route to on the service that you specified in the `service` field. It should be exposed on the service and should route to a valid `containerPort` on the workload you gave.
82+
83+
### `portName`
84+
85+
Alternatively, the port can be referenced using it's `name` as defined in the `Service`.
86+
87+
### `scaledownPeriod`
88+
89+
>Default: 300
90+
91+
The period to wait after the last reported active before scaling the resource back to 0.
92+
93+
> Note: This time is measured on KEDA side based on in-flight requests, so workloads with few and random traffic could have unexpected scale to 0 cases. In those case we recommend to extend this period to ensure it doesn't happen.
94+
95+
96+
## `scalingMetric`
97+
98+
This is the second most important part of the `spec` because it describes how the workload has to scale. This section contains 2 nested sections (`requestRate` and `concurrency`) which are mutually exclusive between themselves.
99+
100+
### `requestRate`
101+
102+
This section enables scaling based on the request rate.
103+
104+
> **NOTE**: Requests information is stored in memory, aggragating long periods (longer than 5 minutes) or too fine granularity (less than 1 second) could produce perfomance issues or memory usage increase.
105+
106+
> **NOTE 2**: Although updating `window` and/or `granularity` is something doable, the process just replaces all the stored request count infomation. This can produce unexpected scaling behaviours until the window is populated again.
107+
108+
#### `targetValue`
109+
110+
>Default: 100
111+
112+
This is the target value for the scaling configuration.
113+
114+
#### `window`
115+
116+
>Default: "1m"
117+
118+
This value defines the aggregation window for the request rate calculation.
119+
120+
#### `granularity`
121+
122+
>Default: "1s"
123+
124+
This value defines the granualarity of the aggregated requests for the request rate calculation.
125+
126+
### `concurrency`
127+
128+
This section enables scaling based on the request concurrency.
129+
130+
> **NOTE**: This is the only scaling behaviour before v0.8.0
131+
132+
#### `targetValue`
133+
134+
>Default: 100
135+
136+
This is the target value for the scaling configuration.

docs/walkthrough.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ You'll need to clone the repository to get access to this chart. If you have you
3232
You interact with the operator via a CRD called `HTTPScaledObject`. This CRD object instructs interceptors to forward requests for a given host to your app's backing `Service`. To get an example app up and running, read the notes below and then run the subsequent command from the root of this repository.
3333

3434
```console
35-
kubectl apply -n $NAMESPACE -f examples/v0.9.0/httpscaledobject.yaml
35+
kubectl apply -n $NAMESPACE -f examples/v0.10.0/httpscaledobject.yaml
3636
```
3737

38-
>If you'd like to learn more about this object, please see the [`HTTPScaledObject` reference](./ref/v0.9.0/http_scaled_object.md).
38+
>If you'd like to learn more about this object, please see the [`HTTPScaledObject` reference](./ref/v0.10.0/http_scaled_object.md).
3939
4040
## Testing Your Installation
4141

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
kind: HTTPScaledObject
2+
apiVersion: http.keda.sh/v1alpha1
3+
metadata:
4+
name: xkcd
5+
spec:
6+
hosts:
7+
- myhost.com
8+
pathPrefixes:
9+
- /test
10+
scaleTargetRef:
11+
name: xkcd
12+
kind: Deployment
13+
apiVersion: apps/v1
14+
service: xkcd
15+
port: 8080
16+
replicas:
17+
min: 1
18+
max: 10
19+
scaledownPeriod: 300
20+
scalingMetric:
21+
requestRate:
22+
granularity: 1s
23+
targetValue: 100
24+
window: 1m

0 commit comments

Comments
 (0)