Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the fine-parallel-processing-work-queue.md task file to remove $ and remvoe text not appropiate for end user #12793

Merged
merged 1 commit into from
Feb 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions content/en/docs/tasks/job/fine-parallel-processing-work-queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,7 @@ For this example, for simplicity, we will start a single instance of Redis.
See the [Redis Example](https://github.com/kubernetes/examples/tree/master/guestbook) for an example
of deploying Redis scalably and redundantly.

If you are working from the website source tree, you can go to the following
directory and start a temporary Pod running Redis and a service so we can find it.

```shell
$ cd content/en/examples/application/job/redis
$ kubectl create -f ./redis-pod.yaml
pod/redis-master created
$ kubectl create -f ./redis-service.yaml
service/redis created
```

If you're not working from the source tree, you could also download the following
files directly:
You could also download the following files directly:

- [`redis-pod.yaml`](/examples/application/job/redis/redis-pod.yaml)
- [`redis-service.yaml`](/examples/application/job/redis/redis-service.yaml)
Expand All @@ -78,7 +66,7 @@ printed.
Start a temporary interactive pod for running the Redis CLI.

```shell
$ kubectl run -i --tty temp --image redis --command "/bin/sh"
kubectl run -i --tty temp --image redis --command "/bin/sh"
Waiting for pod default/redis2-c7h78 to be running, status is Pending, pod ready: false
Hit enter for command prompt
```
Expand Down Expand Up @@ -138,9 +126,7 @@ client library to get work. Here it is:

{{< codenew language="python" file="application/job/redis/worker.py" >}}

If you are working from the source tree, change directory to the
`content/en/examples/application/job/redis/` directory.
Otherwise, download [`worker.py`](/examples/application/job/redis/worker.py),
You could also download [`worker.py`](/examples/application/job/redis/worker.py),
[`rediswq.py`](/examples/application/job/redis/rediswq.py), and
[`Dockerfile`](/examples/application/job/redis/Dockerfile) files, then build
the image:
Expand Down Expand Up @@ -202,7 +188,7 @@ kubectl create -f ./job.yaml
Now wait a bit, then check on the job.

```shell
$ kubectl describe jobs/job-wq-2
kubectl describe jobs/job-wq-2
Name: job-wq-2
Namespace: default
Selector: controller-uid=b1c7e4e3-92e1-11e7-b85e-fa163ee3c11f
Expand All @@ -229,7 +215,7 @@ Events:
33s 33s 1 {job-controller } Normal SuccessfulCreate Created pod: job-wq-2-lglf8


$ kubectl logs pods/job-wq-2-7r7b2
kubectl logs pods/job-wq-2-7r7b2
Worker with sessionID: bbd72d0a-9e5c-4dd6-abf6-416cc267991f
Initial queue state: empty=False
Working on banana
Expand Down