Skip to content

Commit

Permalink
feat: add KEDA HTTPScaledObjects support
Browse files Browse the repository at this point in the history
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
  • Loading branch information
kahirokunn committed Dec 17, 2024
1 parent 43cba61 commit 69dda9f
Show file tree
Hide file tree
Showing 51 changed files with 4,092 additions and 20 deletions.
13 changes: 13 additions & 0 deletions artifacts/flagger/account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,19 @@ rules:
- update
- patch
- delete
- apiGroups:
- http.keda.sh
resources:
- httpscaledobjects
- httpscaledobjects/finalizers
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apisix.apache.org
resources:
Expand Down
19 changes: 19 additions & 0 deletions artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ spec:
enum:
- HorizontalPodAutoscaler
- ScaledObject
- HTTPScaledObject
name:
type: string
primaryScalerQueries:
Expand All @@ -134,6 +135,24 @@ spec:
maxReplicas:
type: integer
minimum: 1
primaryScalingSet:
type: object
description: |-
PrimaryScalingSet to be used for primary HTTPScaledObject, if empty, default interceptor and scaler will be used.
properties:
kind:
description: Kind of the resource being referred to. Defaults to HTTPScalingSet.
enum:
- HTTPScalingSet
- ClusterHTTPScalingSet
type: string
name:
description: Name of the scaling set
type: string
namespace:
maxLength: 63
minLength: 1
type: string
ingressRef:
description: Ingress selector
type: object
Expand Down
19 changes: 19 additions & 0 deletions charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ spec:
enum:
- HorizontalPodAutoscaler
- ScaledObject
- HTTPScaledObject
name:
type: string
primaryScalerQueries:
Expand All @@ -134,6 +135,24 @@ spec:
maxReplicas:
type: integer
minimum: 1
primaryScalingSet:
type: object
description: |-
PrimaryScalingSet to be used for primary HTTPScaledObject, if empty, default interceptor and scaler will be used.
properties:
kind:
description: Kind of the resource being referred to. Defaults to HTTPScalingSet.
enum:
- HTTPScalingSet
- ClusterHTTPScalingSet
type: string
name:
description: Name of the scaling set
type: string
namespace:
maxLength: 63
minLength: 1
type: string
ingressRef:
description: Ingress selector
type: object
Expand Down
13 changes: 13 additions & 0 deletions charts/flagger/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,19 @@ rules:
- update
- patch
- delete
- apiGroups:
- http.keda.sh
resources:
- httpscaledobjects
- httpscaledobjects/finalizers
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apisix.apache.org
resources:
Expand Down
Binary file added docs/diagrams/flagger-keda-http-add-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/gitbook/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* [Blue/Green Deployments](tutorials/kubernetes-blue-green.md)
* [Canary analysis with Prometheus Operator](tutorials/prometheus-operator.md)
* [Canary analysis with KEDA ScaledObjects](tutorials/keda-scaledobject.md)
* [Canary analysis with KEDA HTTPScaledObjects](tutorials/keda-httpscaledobject.md)
* [Zero downtime deployments](tutorials/zero-downtime-deployments.md)

## Dev
Expand Down
Loading

0 comments on commit 69dda9f

Please sign in to comment.