| Summary: | [DOCS] Provide details about endpoint discovery | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Rich <erich> |
| Component: | Documentation | Assignee: | Gaurav Nelson <gnelson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Hongan Li <hongli> |
| Severity: | high | Docs Contact: | Vikram Goyal <vigoyal> |
| Priority: | medium | ||
| Version: | 3.1.0 | CC: | aos-bugs, asogukpi, bparees, dma, erich, gnelson, hongli, jokerman, kconner, misalunk, mmccomas, pep, rcernich, rmartine, tkimura, vigoyal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1253726 | Environment: | |
| Last Closed: | 2018-04-02 23:58:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1376871, 1253726 | ||
| Bug Blocks: | |||
|
Description
Eric Rich
2015-12-23 22:20:42 UTC
Tracking this in PR https://github.com/openshift/openshift-docs/pull/7565 FWIW, we've moved away from kube-ping because it requires adding view perms to the service account running the pods. DNS is a more natural fit, as you can use a service to group the endpoints. A headless service works nicely for this, which allows you to do a simple dns query to list all the siblings' pod IPs. That said, for EAP, we are using the "tolerate unready pods" annotation, as cluster formation occurs during launch, before the server is "ready." I'd say that's a caveat based on how whatever technology you're using performs its setup. (EAP works without this setting, but the pods initially form a cluster of one, which is then merged into the "real" cluster once it's ready, which can load the cluster with state transfer requests, which probably isn't ideal, especially if you're scaling up to handle load.) Thanks Eric, Ben, Rob As Eric said, we want to add information that's generic to OpenShift. defining a headless service that groups the pods and then using DNS to look up the endpoints for the DNS entry is probably the recommendation these days, as Rob notes. Does not require additional permissions. Update the PR https://github.com/openshift/openshift-docs/pull/7565 to include following sections: - headless service definition - endpoint discovery using headless service example Updated the PR to include additional information about `publishNotReadyAddresses` as shared in GitHub PR. Please check the updates in PR https://github.com/openshift/openshift-docs/pull/7565 GitHub rendered version is available at https://github.com/gaurav-nelson/openshift-docs/blob/7920f855141324d4ca29b4315edaf2bb92fac83d/architecture/core_concepts/pods_and_services.adoc#headless-services the doc PR looks good, mark this as verified. thanks Commit pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/59997fe6443bd7e2cef0f88a9cea3ad4b0abe399 Merge pull request #7565 from gaurav-nelson/bug1293988-fixes Headlless service and pod discovery |