Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add support for KEDA HTTPScaledObjects via HTTPScaledObjectReconciler #1714

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
33 changes: 33 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,38 @@ spec:
maxReplicas:
type: integer
minimum: 1
canaryInterceptorProxyService:
type: object
description: Specify this service if you want to change the Canary interceptor proxy service from its default value.
properties:
name:
default: keda-http-add-on-interceptor-proxy
maxLength: 253
minLength: 1
type: string
namespace:
default: keda
maxLength: 63
minLength: 1
type: string
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
33 changes: 33 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,38 @@ spec:
maxReplicas:
type: integer
minimum: 1
canaryInterceptorProxyService:
type: object
description: Specify this service if you want to change the Canary interceptor proxy service from its default value.
properties:
name:
default: keda-http-add-on-interceptor-proxy
maxLength: 253
minLength: 1
type: string
namespace:
default: keda
maxLength: 63
minLength: 1
type: string
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
15 changes: 15 additions & 0 deletions charts/flagger/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ rules:
resources:
- httproutes
- httproutes/finalizers
- referencegrants
- referencegrants/finalizers
verbs:
- get
- list
Expand All @@ -247,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