kubernetes-up-and-running/12-6-load-queue.sh
Lachlan Evenson 617d608be4
Chapter 11 & 12 updates
Signed-off-by: Lachlan Evenson <lachlan.evenson@gmail.com>
2024-01-29 20:53:29 -08:00

10 lines
254 B
Bash
Executable File

# Create a work queue called 'keygen'
curl -X PUT localhost:8080/memq/server/queues/keygen
# Create 100 work items and load up the queue.
for i in work-item-{0..99}; do
curl -X POST localhost:8080/memq/server/queues/keygen/enqueue \
-d "$i"
done