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
Documentation for Indexed completion mode #26958
Conversation
Deploy preview for kubernetes-io-vnext-staging processing. Building with commit 552566f https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/60511b23a4aae00007b38942 |
cc @reylejano |
/assign |
321db67
to
ce052a4
Compare
/assign @erictune |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this.
I have reviewed inline.
I wonder if there's a way to use a ready-made and reasonably trusted) public container image for the work task, something that can take an index in argv
. If so, a bunch of my concerns disappear.
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
ce052a4
to
49d165d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there's a way to use a ready-made and reasonably trusted) public container image for the work task, something that can take an index in argv. If so, a bunch of my concerns disappear.
I also don't quite like providing a program and dockerfile. I just followed the way of the existing job patterns tasks. I could just use busybox echo
. WDYT?
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/job/indexed-parallel-processing-static.md
Outdated
Show resolved
Hide resolved
/assign @PI-Victor |
@kubernetes/sig-apps-pr-reviews Can you provide a tech review? |
How about:
Another approach is also OK. Could run a script in a Linux OS-type container for example, providing the code via the command line. |
89c8696
to
0af3ede
Compare
0af3ede
to
6624e0f
Compare
@@ -185,6 +184,33 @@ parallelism, for a variety of reasons: | |||
- The Job controller may throttle new Pod creation due to excessive previous pod failures in the same Job. | |||
- When a Pod is gracefully shut down, it takes time to stop. | |||
|
|||
#### Completion Mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, this would work better as a level 3 heading so that it's part of in-page navigation.
#### Completion Mode | |
### Completion mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
<!-- steps --> | ||
|
||
## Create a container image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Create a container image | |
## Choose an approach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This program is available in the [busybox container image](https://hub.docker.com/_/busybox): | ||
|
||
{{< tabs name="busybox container image" >}} | ||
{{{< tab name="Docker Hub" >}} | ||
docker.io/library/busybox | ||
{{< /tab >}} | ||
{{< tab name="Google Container Registry" >}} | ||
mirror.gcr.io/library/busybox | ||
{{< /tab >}}} | ||
{{< /tabs >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we're not pushing images, my earlier feedback doesn't apply and this can simplify to:
This program is available in the [busybox container image](https://hub.docker.com/_/busybox): | |
{{< tabs name="busybox container image" >}} | |
{{{< tab name="Docker Hub" >}} | |
docker.io/library/busybox | |
{{< /tab >}} | |
{{< tab name="Google Container Registry" >}} | |
mirror.gcr.io/library/busybox | |
{{< /tab >}}} | |
{{< /tabs >}} | |
For this example, you'll use the `rev` tool from the [`busybox`](https://hub.docker.com/_/busybox) container image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
6624e0f
to
7923b74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks, this is a good docs improvement @alculquicondor !
LGTM label has been added. Git tree hash: c61bd02b8ed9b91d7c8341203947011f96bab663
|
/approve |
/approve cancel
|
Signed-off-by: Aldo Culquicondor <acondor@google.com>
7923b74
to
552566f
Compare
/hold cancel |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: reylejano, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
LGTM label has been added. Git tree hash: 8b70b23feb526919ee8b5a009b01e38bf66a0d82
|
/sig apps
kubernetes/enhancements#2214