Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Kubernetes controller for scaling Deployments based on AWS SQS queue length

License

Notifications You must be signed in to change notification settings

uswitch/sqs-autoscaler-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQS Autoscaler Controller

This provides a controller to autoscale Deployments according to the queue size of an SQS queue.

Creating

apiVersion: aws.uswitch.com/v1
kind: SqsAutoScaler
metadata:
  name: testing-scaler
  namespace: myns
spec:
  deployment: testapp
  maxPods: 20
  minPods: 1
  queue: https://sqs.eu-west-1.amazonaws.com/1234567890/some-queue
  scaleDown:
    amount: 2
    threshold: 10
  scaleUp:
    amount: 5
    threshold: 100
$ kubectl apply -f scaler.yaml
$ kubectl get sqsautoscalers

About

Kubernetes controller for scaling Deployments based on AWS SQS queue length

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages