-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
KEP-4020: Replace StorageversionAPI with AggregatedDiscovery to fetch served resources by peer apiservers #5113
Conversation
richabanker
commented
Jan 31, 2025
•
edited
Loading
edited
- One-line PR description: Replace StorageversionAPI with AggregatedDisovery to fetch served resources by peer apiservers. Also some formatting changes.
- Issue link: Unknown Version Interoperability Proxy #4020
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
|
||
5. If the proxy call fails for network issues or any reason, we serve 503 with error `Error while proxying request to destination apiserver` | ||
|
||
6. We will also add a poststarthook for the apiserver to ensure that it does not start serving requests until we are done creating/updating SV objects | ||
6. We will also add a poststarthook for the apiserver to ensure that it does not start serving requests until we have populated both Local Discovery and Remote Discovery caches. |
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.
+1 on local discovery poststarthook. Remote discovery could be considerably slower? Do we really want to block on those as well? When working on aggregated discovery, we specifically did not block startup on remote apiservices (which is slightly different than remote apiservers) to avoid adding excessive startup time.
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.
Hmm, the other alternative is serve 503 if the peer-agg-discovery cache hasnt yet synced. I guess we could do that if this(adding delay in apiserver bootstrap) is a major concern ?
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.
Modified to say that the poststarthook will block traffic-serving until the local discovery cache is full and the apiserver identity informer is synced
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
becada6
to
6779d42
Compare
9bef8fe
to
a173ee4
Compare
62a3804
to
e3e1740
Compare
e3e1740
to
14bc5eb
Compare
b459718
to
b46e339
Compare
036d4d0
to
474e383
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.
two comments otherwise LGTM
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
keps/sig-api-machinery/4020-unknown-version-interoperability-proxy/README.md
Outdated
Show resolved
Hide resolved
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
…ources by peer apiservers
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jpbetz, richabanker 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 |