Skip to content

Commit

Permalink
feat: testing the keda http addon
Browse files Browse the repository at this point in the history
  • Loading branch information
k-candidate committed Jan 31, 2024
1 parent 740141b commit 7f95206
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/hello-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ spec:
pathType: Prefix
backend:
service:
name: service-hello-dev
name: keda-add-ons-http-interceptor-proxy
port:
number: 8080
20 changes: 18 additions & 2 deletions resources/hello-scaling.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: scaling-hello-dev
name: cron-scaling-hello-dev
spec:
scaleTargetRef:
name: deployment-hello-dev
kind: Deployment
minReplicaCount: 1
minReplicaCount: 0
maxReplicaCount: 2
pollingInterval: 30
cooldownPeriod: 30
Expand All @@ -18,3 +18,19 @@ spec:
start: 00 08 * * 1-5
end: 00 18 * * 1-5
desiredReplicas: "1"
---
kind: HTTPScaledObject
apiVersion: http.keda.sh/v1alpha1
metadata:
name: http-scaling-hello-dev
spec:
host: "hello-dev.kcan.io"
targetPendingRequests: 5
scaledownPeriod: 30
scaleTargetRef:
deployment: deployment-hello-dev
service: service-hello-dev
port: 8080
replicas:
min: 0
max: 2
8 changes: 8 additions & 0 deletions resources/hello-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ spec:
port: 8080
targetPort: 80
nodePort: 31069
---
apiVersion: v1
kind: Service
metadata:
name: keda-add-ons-http-interceptor-proxy
spec:
type: ExternalName
externalName: keda-add-ons-http-interceptor-proxy.keda.svc.cluster.local

0 comments on commit 7f95206

Please sign in to comment.