From 4eafd1e0a3a3410693d2e063798be1f246977fd7 Mon Sep 17 00:00:00 2001 From: tolleiv Date: Sat, 28 Jan 2017 17:04:07 +0100 Subject: [PATCH] Update references to the example configuration files --- docs/user-guide/jobs/work-queue-2/index.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/user-guide/jobs/work-queue-2/index.md b/docs/user-guide/jobs/work-queue-2/index.md index 621be7f795..5e2e8a03ec 100644 --- a/docs/user-guide/jobs/work-queue-2/index.md +++ b/docs/user-guide/jobs/work-queue-2/index.md @@ -37,12 +37,14 @@ of deploying Redis scalably and redundantly. Start a temporary Pod running Redis and a service so we can find it. ```shell -$ kubectl create -f examples/job/work-queue-2/redis-pod.yaml +$ kubectl create -f docs/user-guide/jobs/work-queue-2/redis-pod.yaml pod "redis-master" created -$ kubectl create -f examples/job/work-queue-2/redis-service.yaml +$ kubectl create -f docs/user-guide/jobs/work-queue-2/redis-service.yaml service "redis" created ``` +If you're not working from the source tree, you could also download [`redis-pod.yaml`](redis-pod.yaml?raw=true) and [`redis-service.yaml`](redis-service.yaml?raw=true) directly. + ## Filling the Queue with tasks Now lets fill the queue with some "tasks". In our example, our tasks are just strings to be @@ -112,7 +114,7 @@ client library to get work. Here it is: {% include code.html language="python" file="worker.py" ghlink="/docs/user-guide/jobs/work-queue-2/worker.py" %} If you are working from the source tree, -change directory to the `examples/job/work-queue-2` directory. +change directory to the `docs/user-guide/jobs/work-queue-2/` directory. Otherwise, download [`worker.py`](worker.py?raw=true), [`rediswq.py`](rediswq.py?raw=true), and [`Dockerfile`](Dockerfile?raw=true) using above links. Then build the image: