An open API service indexing awesome lists of open source software.

https://github.com/uswitch/sqs-autoscaler-controller

Kubernetes controller for scaling Deployments based on AWS SQS queue length
https://github.com/uswitch/sqs-autoscaler-controller

Last synced: 6 months ago
JSON representation

Kubernetes controller for scaling Deployments based on AWS SQS queue length

Awesome Lists containing this project

README

          

# SQS Autoscaler Controller

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

## Creating

```yaml
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
```