Reputation: 11
We currently have a public GKE cluster on which many data processing tasks are deployed. These tasks use a lot of bandwith because they download/upload very large files. For some of our tasks, they need to have static IP for 3rd parties connection. In a public GKE cluster, the outbound IP will be nodes IP, nodes are deleted, recreated with different IPs. We found that we can use a private cluster with NAT to have a static outbound IP. The problem is the pricing ($0.045 per GB). The only solution we found is to have one public cluster and one private cluster, the first one for tasks that doesn't need static IP and the second one for tasks that need one.
I there a way to have public node pools and private node pools in the same cluster ? Or any way to use the NAT only when we need it ?
Thank you so much, If you have any question, please ask ! Have a good evening.
Upvotes: 1
Views: 530
Reputation: 1
There are two options to a "hybrid" public/private GKE cluster. Both involve configuring a "public" cluster.
network_config {
enable_private_nodes = true
}
Upvotes: 0
Reputation: 2120
You cannot mix and match public and private node pools in GKE.
One solution would be to run your own NAT:
Upvotes: 0