3.0.0 • Published 2 years ago

k8s-bull-autoscaler v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

k8s-bull-autoscaler

CLI to autoscale k8s pods based on Bull queue size

Example Deployment

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: example-queue-autoscaler
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: example-queue-autoscaler
        environment: production
    spec:
      containers:
        - name: example-queue-autoscaler
          image: rosslavery/k8s-bull-autoscaler:latest
          args:
            - --queue-url=http://example-api/queues/count
            - --k8s-deployment=example-worker
            - --poll-period=10000
            - --scale-down-wait=60000
            - --scale-up-wait=60000
            - --messages-per-pod=300
            - --min-pods=1
            - --max-pods=5