Skip to content

This controller is a example that dequeuing messages from AWS SQS and creating job resources in Kubernetes.

License

Notifications You must be signed in to change notification settings

mahdi-torabi/aws-sqs-worker-job-controller

 
 

Repository files navigation

AWS SQS Worker Job Controller

This is a custom controller for Kubernetes.
The controller aims at handling worker jobs for queueing.
A worker job is invoked by the controller with a message of the queue as args when successful dequeue.
Worker jobs are declared by CRD. The custom resources own Job resources.

Pod <- Job <- AWSSQSWorkerJob

Running controller on local host

$ kind create cluster
$ make apply-manifests
$ make build
$ make port-forward-localstack &
$ make run

Running controller in Docker

$ kind create cluster
$ make apply-manifests
$ make build-image
$ make port-forward-registry &
$ make push-image

Verify operation with LocalStack

$ make port-forward-localstack &
$ make create-example-queue
$ make enqueue-example-task

See also

About

This controller is a example that dequeuing messages from AWS SQS and creating job resources in Kubernetes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 76.3%
  • Makefile 18.7%
  • Shell 3.9%
  • Dockerfile 1.1%