Repository navigation
Using InternalTrafficPolicy: Local vs PreferSameNode for older k8s clusters rather than 1.34 #1371
|
Hey there! New over here :), I was monitoring, and I saw that there are still requests to the registries even when p2p works, it got cancelled, from p2p and from a perspective of trade-offs, I was wondering if it'd make sense to implement that option in the helm chart (?) or if it's super tiny on the sense of.. costs from egress and 3rd party and also if I'm ignorant about any constraint that I'm not considering, Already applied a fix using this, and it's going p2p directly without interacting with the private-registry, Thanks! |
Replies: 1 comment 4 replies
|
Using PreferSameNode has been an opt in feature until now because Kubernetes 1.33 does not enable it by default. The next release of Spegel will remove the work around as 1.36 is the latest version supported. If you are running 1.34 or later you should opt in to use PreferSameNode as it removes an extra request. I am not sure what you mean about adding this to the Helm chart? Could you expand a bit more :) |
No silly questions. 😄 Thank you for creating a Q&A discussion rather than an issue to ask. It really helps me track things and future users to find answers to similar questions. 🌹
The internal traffic policy feature in Kubernetes has been a bit of a roller coaster ride. Useful features were added and the retracted due to differing opinions on design. On top of that the old topology labels were hit or miss and wasn't really a hard requirement, more a suggestion. So it has taken a lot longer to get things to a GA state.
I added #18 as partial solution while waiting for prefer local to be implemented. The double call was mostly worth it if it meant keeping the request in the cluster. As you …