How do we send egress through fixed IPs or a site-to-site VPN?
For a static egress IP for Kubernetes pods, use the Cilium egress gateway. It is enabled on every Syself Autopilot cluster, so there is nothing to install. You only configure it.
The egress gateway sends the outbound traffic of the pods you select through one node, so the destination always sees that node's public IP. A CiliumEgressGatewayPolicy names the pods, the destinations and the gateway node. Use a bare-metal node as the gateway when an IP allowlist has to hold for a long time. A bare-metal server keeps its IP. A cloud server gets a new public IP when it is replaced, and that happens on updates and upgrades.
The selected traffic depends on that one node. The setup, and how to get failover with several egress nodes, is in Egress gateway for a stable source IP.
If the other side opens the connection to you, you do not need the egress gateway. A LoadBalancer Service already has a stable public IP.
For a site-to-site VPN to an on-premises network or a VPC, run a WireGuard or IPsec gateway pod that holds the tunnel, and route the remote subnet through it. Check before you create the cluster that its pod and service ranges do not overlap with the remote network. They cannot be changed later, so set them at creation as described in Configure pod and service subnets. The tunnel setup is in Connect to on-prem or another VPC.
The other direction, reaching services inside the cluster from outside, is a different setup: Which VPN do you recommend for reaching internal services from outside the cluster?
Related questions
