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 Job docs to include info about enabling pod-to-pod communication within a job using pod hostnames #37771

Merged
merged 39 commits into from
Nov 30, 2022

Conversation

danielvegamyhre
Copy link
Member

The purpose of these changes is to update the Job docs to include information about how to enable pod communication within a Job using pod hostnames. This requires setting up a headless service, and setting the Job template spec to specify the headless service name as a subdomain. Doing so will trigger kube-dns to cache the pod hostnames, and enable pod-to-pod communication via <podHostname>.<headlessServiceName> format.

This is currently undocumented, so these changes outline the steps to set this up, as well as a working example.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 7, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: danielvegamyhre / name: Daniel Vega-Myhre (7a17b9f, 79be50e)

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. language/en Issues or PRs related to English language labels Nov 7, 2022
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Nov 7, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @danielvegamyhre!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 7, 2022
@netlify
Copy link

netlify bot commented Nov 7, 2022

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 1bd542e
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6386c5d3a9ba6e000837e3ac
😎 Deploy Preview https://deploy-preview-37771--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@Arhell Arhell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign CLA

@danielvegamyhre
Copy link
Member Author

/check-cla

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 8, 2022
@danielvegamyhre
Copy link
Member Author

Signed CLA

@danielvegamyhre danielvegamyhre requested review from Arhell and removed request for onlydole and soltysh November 8, 2022 00:49
@danielvegamyhre danielvegamyhre changed the title Update Job docs to include info about enabling pod communication with a job using pod hostnames Update Job docs to include info about enabling pod-to-pod communication within a job using pod hostnames Nov 8, 2022
@Arhell
Copy link
Member

Arhell commented Nov 8, 2022

/assign @sftim

@ahg-g
Copy link
Member

ahg-g commented Nov 16, 2022

/assign @alculquicondor

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 22, 2022
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1c607dc3aa8270b66d40d86873c12c0a3902b402

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 22, 2022
@danielvegamyhre
Copy link
Member Author

@alculquicondor I made one final small change to make and this accidentally removed your LGTM, sorry!

@alculquicondor
Copy link
Member

That's ok, you still need editorial approval for sig-docs. They will add the LGTM back, once they review, based on my comment.

@danielvegamyhre
Copy link
Member Author

@sftim this is ready for sig-docs to take a look, see LGTM from job-controller approver above

content/en/docs/concepts/workloads/controllers/job.md Outdated Show resolved Hide resolved

[Queue with Pod Per Work Item]: /docs/tasks/job/coarse-parallel-processing-work-queue/
[Queue with Variable Pod Count]: /docs/tasks/job/fine-parallel-processing-work-queue/
[Indexed Job with Static Work Assignment]: /docs/tasks/job/indexed-parallel-processing-static/
[Job Template Expansion]: /docs/tasks/job/parallel-processing-expansion/
[Job with Pod-to-Pod Communication]: /docs/tasks/job/job-with-pod-to-pod-communication/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remove this line, the references to "Job with Pod-to-Pod Communication" will show up as string literals, rather than as links. Can you clarify why you want to remove it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 267 is already a complete link.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the solution is rather the opposite: remove the complete link from line 267

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Em... both are valid markdown syntax. The full link syntax is preferred over the out-of-band link syntax because we have scripts to scan bad links and that script is not good at handling the out-of-band syntax.

danielvegamyhre and others added 9 commits November 29, 2022 18:50
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
@tengqm
Copy link
Contributor

tengqm commented Nov 30, 2022

This one is ready to go, given tech/doc review history.
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 30, 2022
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8a840338865c699b0b577ee5013ca8f580b11a65

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 30, 2022
@k8s-ci-robot k8s-ci-robot merged commit 43a8d5d into kubernetes:main Nov 30, 2022
@alculquicondor
Copy link
Member

There is a format error, PTAL at fix #38195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants