Private network with egress gateway #1299
Unanswered
robertlemke
asked this question in
Q&A
Replies: 1 comment 4 replies
-
There is no option currently to use an existing network, but this could be implemented in theory. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to set up a cluster with nodes only having private IP addresses.
That basically works, when I enable hcloudNetwork in the respective
HetznerClusterTemplate
. A load balance can then route incoming requests to the respective pods. However, Nodes need some way to send outgoing requests (egress) as well, for example for pulling images. Since I don't want nodes to have a public IP address, I started implementing a SNAT server which acts as a gateway for egress traffic.The private network needs to have a route pointing to the SNAT server for the destination
0.0.0.0/0
.Now here's the problem: when i enable
hcloudNetwork
, the reconciliation service will create the network when the cluster is created and deletes the network when the cluster is destroyed. But I need to set up this network myself (with Terraform) in order to configure the route to the SNAT server in time – otherwise the cluster bootstrap fails, because it cannot pull images. If I disablehcloudNetwork
, I can set up the network and route with Terraform – but creation of the machines fail because they are not connected to any network.Two questions:
Beta Was this translation helpful? Give feedback.
All reactions