05- How to Set Up Hybrid Connectivity Using Google Cloud HA VPN | Demo HA VPN between 2 VPC network

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 4

  • @DamienMalakay
    @DamienMalakay หลายเดือนก่อน

    finally someone who showed the procedure properly :) how do you setup vpn access to cloud sql? 🤔GCP likes to run those in their own VPC and so I have VPN connectivity but when I try to hit cloud sql from another project nothing happens, there has to be some sort of route that we have to make manually

    • @thecloudbaba8668
      @thecloudbaba8668  หลายเดือนก่อน

      Private service connect is the solution.you don’t need to setup any vpn or something becoz cloud sql is owned by Google Cloud Vpc. Refer the following url
      cloud.google.com/sql/docs/mysql/configure-private-service-connect

    • @DamienMalakay
      @DamienMalakay หลายเดือนก่อน +1

      @@thecloudbaba8668 actually you do need VPN, it's from VPC to VPC (project to project) and therefore you do need VPN. I was able to se it up and my mistake had been that my subnets were regional as oppose to global so the cloud router was only advertising regional routes to one another. Once I made both subnets global VPN created the routes

    • @DamienMalakay
      @DamienMalakay หลายเดือนก่อน

      @@thecloudbaba8668 actually you do NEED VPN, the question is how you can get from one vpc to another (project to project) and gcp hosts your SQL and peers your VPC to that SQL endpoint but the other project's VPC can't get to this even if it's peered. The mistake I made was that the VPCs I created had a regional Routing Mode instead of Global. Once I set both VPCs to Global Routing, the HA VPN connection added the routes and I could get to the SQL endpoint from the other VPC