https://github.com/cvhariharan/kubernetes-job-queue
A test project to try different job queue patterns with kubernetes
https://github.com/cvhariharan/kubernetes-job-queue
jobqueue kubernetes
Last synced: about 1 year ago
JSON representation
A test project to try different job queue patterns with kubernetes
- Host: GitHub
- URL: https://github.com/cvhariharan/kubernetes-job-queue
- Owner: cvhariharan
- Created: 2023-07-01T11:57:36.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-02T11:56:32.000Z (almost 3 years ago)
- Last Synced: 2025-02-08T16:12:24.948Z (about 1 year ago)
- Topics: jobqueue, kubernetes
- Language: Go
- Homepage: https://blog.trieoflogs.com/jobqueue
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Kubernetes Job Queue
A test project to try different solutions to build a job queue on top of Kubernetes.
### Setup
Create a cluster
```bash
go install sigs.k8s.io/kind@v0.20.0 && kind create cluster
```
Build the image
```bash
docker build . -t worker:1
```
Directly running the image will start an API server. Additional flags can be passed to start a worker node (`WORKER`) and to exit if the queue is empty (`EXIT`).
Load the image into the cluster
```bash
kind load docker-image worker:1
```
Deploy the definitions from `deployments/` folder. Each file is a different approach.