Reputation: 115
Resources
Redis - Managed service (Memory store) - Only single Auth network can connect not multiple VPC
VPC - 1 - 192.168.0.0/24
VPC - 2 - 10.0.0.0/24
Redis <-> VPC 1 (Connected to Redis Private VPC Peering)
VPC 2 - GKE cluster Auto Pilot POD Redis - VPC 1 - VPC 2
Retirement is to connect from VPC 2 GKE Autopilot to Redis Instance through VPC 1 (as it’s authorised network)
Points to Note
Options in mind
Please suggest if there is any better option available to connect from GKE autopilot in VPC 2 to Redis through VPC 1 without Peering.
Thanks
Upvotes: 0
Views: 61
Reputation: 552
In your case, the simplest way this can be achieved is to create internal LB that requires peering. You can limit network connectivity of different VPCs by configuring the firewall rules and route tables. See this guide for steps to setup.
Upvotes: 0