[Feature Request]: Reserve some count public IPv4 / IPv6 for whitelisting #1041
Replies: 5 comments 1 reply
-
We deployed k8s on hetzner and move services from GKE but we need access to Google secrets. I add additional 2 nodes use terraform and remove 2 nodes with iran IPs. But now I have problem with terraform update.
Better need solution for manages IPv4 / IPv6 for reservation. ============ Thank you for your request. Unfortunately, some GeoIP databases incorrectly locate some of our IPs in Iran. We cannot influence these databases. If this leads to issues for you, please create a Snapshot of the server with the incorrect IP location. Then create a new server with this Snapshot. You can then delete the server with the incorrect IP location. Kind regards Kevin-Damian Gosa Hetzner Online GmbH ======== thanks for your message. Unfortunately such a temporary blockade is unfortunately beyond our control, since this is a decision by the respective service provider. There is a workaround to change the IP address of your Cloud-Server. To do this, create new servers before deleting the old ones. (If you have data on the old server, take a snapshot before deleting it). Each server should have a new IP address. Just keep the server that is not blocked. Should you require any further assistance, please do not hesitate to contact us. Kind regards Tim StichDear Client, thanks for your answer. Unfortunately, I have to inform you that it is not offered to remove any IPs from the rotation. In principle, these will be reserved for you for 24 hours, after which alternatives will be issued. Kind regards Tim Stich Hetzner Online GmbH =================== |
Beta Was this translation helpful? Give feedback.
-
@CroutonDigital Yes, this is a real problem with Hetzner IPs. What you could do is use the cilium egress gateway. If you egress from a node that is clean, normally you won't have any issues. Please try it. See kube.tf.example. |
Beta Was this translation helpful? Give feedback.
-
@CroutonDigital There is another trick, it's to use reserved IPs to check. Basically hetzner allows you to reserved IPs, you grab one, and you try to pull a container from google registry (registry.k8s.io, any container will do it does not matter, or maybe just an HTTP request), if it fails, you keep the IP reserved, if it succeeds you free it. What will happen is that the free IPs will be now just for you to use (that's how Hetzner works, I do not know how long it stays for you, but at least a few hours). So you find as much free IPs as you need to deploy your cluster. Then you deploy, and released all iran IPs that you found and kept reserved. Please if you managed to write a script that does just that, PR most welcome! |
Beta Was this translation helpful? Give feedback.
-
Hi, Some our services in k8s make more requests to external services where need balance requests. service on k8s run on each node and when start get Secrets from Google Secrets. I make blacklist but not easy workflow.
but some issue when cluster auto add new k8s nodes, and now I plan setup pod distribution for services who access to Google Secrets run on core k8s node. Can I use egress with multiply IPv4? Thank you! |
Beta Was this translation helpful? Give feedback.
-
I think cilium egress can work with multiple nodes/ips, of course. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
On GKE in our company we use next case:
We reserve 10-20 IPv4 but cluster use only 4 IPv4, but when autoscaling add new cluster node it take from reserve IPv4.
That need when service communicate with external service where need add IPv4 to whitelist. And need to be add all IPv4 nodes. And when k8s autoscaling up or down we don't have issue with access to external services.
Also we have stateful service where run on each k8s node for balance requests to the external services, count stateful services depends with count running pods in cluster.
I think that case happened often on other projects where services communicate with externals SaaS platforms.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions