Skip to content

Commit 32c6628

Browse files
authored
chore: prepare release v0.13.0 (#1556)
Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com>
1 parent b4a58d2 commit 32c6628

4 files changed

Lines changed: 174 additions & 10 deletions

File tree

.github/ISSUE_TEMPLATE/2_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ body:
4545
attributes:
4646
label: HTTP Add-on Version
4747
description: What version of the KEDA HTTP Add-on are you running?
48-
placeholder: "e.g., 0.12.2 — check your Helm release, image tag, or deployment manifests"
48+
placeholder: "e.g., 0.13.0 — check your Helm release, image tag, or deployment manifests"
4949
validations:
5050
required: false
5151
- type: input

CHANGELOG.md

Lines changed: 23 additions & 7 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.13.0](#v0130)
1314
- [v0.12.2](#v0122)
1415
- [v0.12.1](#v0121)
1516
- [v0.12.0](#v0120)
@@ -27,7 +28,6 @@ This changelog keeps track of work items that have been completed and are ready
2728
### Breaking Changes
2829

2930
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
30-
- **Interceptor**: Remove B3 (Zipkin) trace propagation, only W3C TraceContext and W3C Baggage are now supported ([#1519](https://github.com/kedacore/http-add-on/issues/1519))
3131

3232
### New
3333

@@ -36,6 +36,27 @@ This changelog keeps track of work items that have been completed and are ready
3636
### Improvements
3737

3838
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
39+
40+
### Fixes
41+
42+
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
43+
44+
### Deprecations
45+
46+
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
47+
48+
### Other
49+
50+
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
51+
52+
## v0.13.0
53+
54+
### Breaking Changes
55+
56+
- **Interceptor**: Remove B3 (Zipkin) trace propagation, only W3C TraceContext and W3C Baggage are now supported ([#1519](https://github.com/kedacore/http-add-on/issues/1519))
57+
58+
### Improvements
59+
3960
- **Docs**: Update design doc to use `scalingMetric`/`targetValue` instead of deprecated `targetPendingRequests` ([#1536](https://github.com/kedacore/http-add-on/pull/1536))
4061
- **Interceptor**: Add env-based TLS configuration for min/max version, cipher suites, and curve preferences ([#1530](https://github.com/kedacore/http-add-on/pull/1530))
4162
- **Interceptor**: Reduce interceptor latency and memory usage under high concurrency ([#1482](https://github.com/kedacore/http-add-on/pull/1482))
@@ -47,14 +68,9 @@ This changelog keeps track of work items that have been completed and are ready
4768
- **Interceptor**: Remove configurable `KEDA_HTTP_ENDPOINTS_CACHE_POLLING_INTERVAL_MS` and hardcode EndpointSlice informer resync to 60m ([#1485](https://github.com/kedacore/http-add-on/pull/1485))
4869
- **Scaler**: Remove unused `KEDA_HTTP_SCALER_DEPLOYMENT_INFORMER_RSYNC_PERIOD` env var ([#1533](https://github.com/kedacore/http-add-on/pull/1533))
4970

50-
### Deprecations
51-
52-
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
53-
5471
### Other
5572

56-
- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
57-
- **Interceptor**: Remove unused `CurrentNamespace` field and `KEDA_HTTP_CURRENT_NAMESPACE` env var from interceptor config([#1484](https://github.com/kedacore/http-add-on/pull/1484))
73+
- **Interceptor**: Remove unused `CurrentNamespace` field and `KEDA_HTTP_CURRENT_NAMESPACE` env var from interceptor config ([#1484](https://github.com/kedacore/http-add-on/pull/1484))
5874

5975
## v0.12.2
6076

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# The `HTTPScaledObject`
2+
3+
> This document reflects the specification of the `HTTPScaledObject` resource for the `v0.13.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+
- "*.example.com"
18+
pathPrefixes:
19+
- /test
20+
headers:
21+
- name: X-Custom-Header
22+
value: CustomValue
23+
scaleTargetRef:
24+
name: xkcd
25+
kind: Deployment
26+
apiVersion: apps/v1
27+
service: xkcd
28+
port: 8080
29+
replicas:
30+
min: 5
31+
max: 10
32+
scaledownPeriod: 300
33+
scalingMetric: # requestRate and concurrency are mutually exclusive
34+
requestRate:
35+
granularity: 1s
36+
targetValue: 100
37+
window: 1m
38+
concurrency:
39+
targetValue: 100
40+
```
41+
42+
This document is a narrated reference guide for the `HTTPScaledObject`.
43+
44+
## `httpscaledobject.keda.sh/skip-scaledobject-creation` annotation
45+
46+
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)
47+
48+
## `hosts`
49+
50+
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.
51+
52+
Wildcard patterns are supported using a leading `*.` prefix. For example, `*.example.com` matches any subdomain of `example.com`, including multi-level subdomains like `foo.bar.example.com`. More specific wildcards take precedence over less specific ones (e.g., `*.bar.example.com` wins over `*.example.com`). Exact host matches always take precedence over wildcard matches.
53+
54+
An empty host or `*` acts as a catch-all that matches any hostname. This is useful as a fallback when no other routes match.
55+
56+
## `pathPrefixes`
57+
58+
> Default: "/"
59+
60+
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.
61+
62+
## `headers`
63+
64+
> Default: No headers
65+
66+
To further refine which requests this scaling rule applies to, you can specify a list of HTTP headers. Headers can be specified with or without values - if a value is provided, it must match exactly; if no value is provided, only the header's presence is required. All incoming requests that satisfy these header conditions will be forwarded to the `Service` and port specified in the below `scaleTargetRef`, and that same `scaleTargetRef`'s workload will be scaled accordingly. Most specific matches take precedence over less specific ones. This means that rules with more headers defined will be prioritized over those with fewer headers when multiple rules could apply to a request. Also a match for header with key and value takes precedence over a match for header with only a key.
67+
68+
## `scaleTargetRef`
69+
70+
This is the primary and most important part of the `spec` because it describes:
71+
72+
1. The incoming host to apply this scaling rule to.
73+
2. What workload to scale.
74+
3. The service to which to route HTTP traffic.
75+
76+
### `name`
77+
78+
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.
79+
80+
### `kind`
81+
82+
This is the kind of the workload to scale.
83+
84+
### `apiVersion`
85+
86+
This is the apiVersion of the workload to scale.
87+
88+
### `service`
89+
90+
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.
91+
92+
### `port`
93+
94+
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.
95+
96+
### `portName`
97+
98+
Alternatively, the port can be referenced using it's `name` as defined in the `Service`.
99+
100+
### `scaledownPeriod`
101+
102+
> Default: 300
103+
104+
The period to wait after the last reported active before scaling the resource back to 0.
105+
106+
> 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.
107+
108+
## `scalingMetric`
109+
110+
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.
111+
112+
### `requestRate`
113+
114+
This section enables scaling based on the request rate.
115+
116+
> **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.
117+
118+
> **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.
119+
120+
#### `targetValue`
121+
122+
> Default: 100
123+
124+
This is the target value for the scaling configuration.
125+
126+
#### `window`
127+
128+
> Default: "1m"
129+
130+
This value defines the aggregation window for the request rate calculation.
131+
132+
#### `granularity`
133+
134+
> Default: "1s"
135+
136+
This value defines the granualarity of the aggregated requests for the request rate calculation.
137+
138+
### `concurrency`
139+
140+
This section enables scaling based on the request concurrency.
141+
142+
> **NOTE**: This is the only scaling behaviour before v0.8.0
143+
144+
#### `targetValue`
145+
146+
> Default: 100
147+
148+
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
@@ -33,10 +33,10 @@ You'll need to clone the repository to get access to this chart. If you have you
3333
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.
3434

3535
```console
36-
kubectl apply -n $NAMESPACE -f examples/v0.12.2/httpscaledobject.yaml
36+
kubectl apply -n $NAMESPACE -f examples/v0.13.0/httpscaledobject.yaml
3737
```
3838

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

0 commit comments

Comments
 (0)