TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does Kubernetes modify/add API endpoints at Runtime?

4 pointsby Kreotikoover 3 years ago
I tried reading through the Kubernetes source code but can’t find low level documentation. Can anyone point me to the relevant bits?

1 comment

gwittelover 3 years ago
Do you mean with respect to balancing when endpoints come&#x2F;go (e.g. a POD goes up&#x2F;down)? Or something else?<p>In this case, it depends on the ingress controller used. The default nginx ingress case has some docs: <a href="https:&#x2F;&#x2F;kubernetes.github.io&#x2F;ingress-nginx&#x2F;how-it-works&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kubernetes.github.io&#x2F;ingress-nginx&#x2F;how-it-works&#x2F;</a><p>Note that nginx-ingress has limitations as a side effect of its Lua balancer vs normal nginx. As an example, it does NOT do TLS-resume on the nginx&lt;-&gt;service hop. Normal nginx would, but the lua balancer lacks the necessary code [1]. In some high volume scenarios, this can cause trouble on the backend.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;lua-nginx-module&#x2F;pull&#x2F;1312" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;lua-nginx-module&#x2F;pull&#x2F;1312</a>
评论 #29018125 未加载