Cloud Run Direct VPC egress explained

Google Cloud Tech · Beginner ·☁️ DevOps & Cloud ·2y ago

Key Takeaways

The video explains Direct VPC egress on Cloud Run, a feature that enables sending traffic from Cloud Run to a VPC network without setting up a Serverless VPC Access connector, and compares it to VPC connectors in terms of setup, speed, traffic handling, and costs. Direct VPC egress is easier to set up, faster, can handle more traffic, and has lower costs.

Full Transcript

direct VPC egress on cloud run enables you to send traffic through a VPC Network without setting up a serverless VPC access connector it's easier to set up faster can handle more traffic and has lower costs this is a very exciting update to Cloud run let's dive in to learn more but let's take a step back why send traffic to the VPC in the first place top use cases for sending traffic to the VPC include managing traffic with firewall rules Network traffic observability getting static IPS for outbound requests and connecting to internal IP addresses and and that's the most common one and here are some examples of resources with an internal IP address that you might want to connect to from cloud run a memory store instance a cloud SQL instance that doesn't have a public IP and a compute engine virtual machine or services with an internal load balancer on Google kubernetes engine or on-premise resources when you enable directvpc egress on a cloud run service the cloud run instances gets internal IP addresses on the VPC Network and this new interface can only be used for TCP UDP egress you can use it to create new connections from the VPC Network back to the cloud run instance think of this as a firewall in front of the cloud run instance the firewall allows outbound connections only and no inbound could traffic from the VPC but the other interest path doesn't change with directvc egress web requests to the https endpoint of the cloud run service are still routed to Cloud run instances in the same way as before that doesn't change if you're watching this and you're already familiar with serverless VPC access connectors you might be confused is directvc egress just another way of doing the same thing but it has a shorter name well yes but direct VPC egress has many advantages over VPC connectors to understand why let me tell you how VPC connectors work a VPC connector is a group of managed connector instances every connector instance gets an internal IP address and it proxies outbound connections from a cloud run instance introducing an extra hop in a network path and VPC connectors are not paper use you can think of connector instances as fertile machines they are very much alike in the sense that you are charged for enabling them even when they're idle direct VPC egress doesn't need connector instances which means you only play the network charges this is why directvc egress has lower costs and it uses a new direct network path and this New Path is faster and can handle more traffic delivering lower latency and higher throughput so let's wrap up with directvc egress you get fewer hops in a network path enabling lower latency higher throughput because of the new network path lower costs and it's easier to set up and manage if you want to try it out today check send traffic directly to a VPC when configuring network access for your Cloud run service thanks for listening

Original Description

Direct VPC egress enables you to send traffic from Cloud Run to a VPC network, without setting up a Serverless VPC Access connector. It's easier to set up, is faster, can handle more traffic and has lower costs. Getting started with Direct VPC egress → https://goo.gle/47yObrp Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud Tech · Google Cloud Tech · 48 of 60

1 I’m going for it #GoogleCloudCertified
I’m going for it #GoogleCloudCertified
Google Cloud Tech
2 I had to get #GoogleCloudCertified
I had to get #GoogleCloudCertified
Google Cloud Tech
3 Be better overall at what you do #GoogleCloudCertified
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
4 Cloud Monitoring on our radar #Analysis #Uptime
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
5 Introduction to Generative AI Studio
Introduction to Generative AI Studio
Google Cloud Tech
6 How to use Github Actions with Google's Workload Identity Federation
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
7 Introduction to Responsible AI
Introduction to Responsible AI
Google Cloud Tech
8 Networking updates and CDMC-certified architecture
Networking updates and CDMC-certified architecture
Google Cloud Tech
9 Create and use a Cloud Storage bucket
Create and use a Cloud Storage bucket
Google Cloud Tech
10 How to digitize text from documents
How to digitize text from documents
Google Cloud Tech
11 Faster analytical queries with AlloyDB
Faster analytical queries with AlloyDB
Google Cloud Tech
12 Next ‘23 sessions and FaaS Wave
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
13 Introduction to Assured Open Source Software
Introduction to Assured Open Source Software
Google Cloud Tech
14 BigQuery Cost Optimization: Storage
BigQuery Cost Optimization: Storage
Google Cloud Tech
15 BigQuery Cost Optimization: Compute
BigQuery Cost Optimization: Compute
Google Cloud Tech
16 BigQuery Cost Optimization: Select Queries
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
17 Remote Field Equipment Management with Manufacturing Data Engine
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
18 Supercharging your applications with Cloud SQL Enterprise Plus
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
19 Vector Support on our radar #GenAI
Vector Support on our radar #GenAI
Google Cloud Tech
20 Architecting a blockchain startup with Google Cloud
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
21 Kubernetes and multitasking updates!
Kubernetes and multitasking updates!
Google Cloud Tech
22 GKE: Using Kubernetes Events
GKE: Using Kubernetes Events
Google Cloud Tech
23 How to configure firewall rules for Cloud Composer
How to configure firewall rules for Cloud Composer
Google Cloud Tech
24 Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
25 Geospatial analytics on our radar #EarthEngine #BigQuery
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
26 Ensuring requests are set in Kubernetes
Ensuring requests are set in Kubernetes
Google Cloud Tech
27 Cloud Next 2023, Google research program, and more!
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
28 How to migrate projects between organizations with Resource Manager
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
29 How to run #MySQL in Google Cloud
How to run #MySQL in Google Cloud
Google Cloud Tech
30 #GenerativeAI for enterprises and #Next2023
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
31 How Google Photos scales to store 4 trillion photos and videos
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
32 Google Cross-Cloud Interconnect (Demo 2)
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
33 GKE Cost Optimization Golden Signals: Introduction
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
34 GKE Cost Optimization Golden Signals: Workload Rightsizing
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
35 GKE Load Balancing: Overview
GKE Load Balancing: Overview
Google Cloud Tech
36 GKE Load Balancing: Best Practices
GKE Load Balancing: Best Practices
Google Cloud Tech
37 Disaster Recovery in GKE
Disaster Recovery in GKE
Google Cloud Tech
38 How to configure IP masquerade agent in GKE Standard clusters
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
39 Enable and use GKE Control plane logs
Enable and use GKE Control plane logs
Google Cloud Tech
40 Compliance in Australia with Assured Workloads
Compliance in Australia with Assured Workloads
Google Cloud Tech
41 Creating budgets and budget alerts in Google Cloud #FinOps
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
42 Cloud SQL Enterprise Plus on our radar #mySQL
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
43 What's Next for Google Cloud?
What's Next for Google Cloud?
Google Cloud Tech
44 How Loveholidays scaled with Contact Center AI
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
45 What is fleet team management in GKE?
What is fleet team management in GKE?
Google Cloud Tech
46 Troubleshoot VPC Network Peering
Troubleshoot VPC Network Peering
Google Cloud Tech
47 Introduction to DocAI and Contact Center AI
Introduction to DocAI and Contact Center AI
Google Cloud Tech
Cloud Run Direct VPC egress explained
Cloud Run Direct VPC egress explained
Google Cloud Tech
49 Database deployment options in GKE
Database deployment options in GKE
Google Cloud Tech
50 Analyze cloud billing data with #BigQuery
Analyze cloud billing data with #BigQuery
Google Cloud Tech
51 Tips to becoming a world-class Prompt Engineer
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
52 Serverless is simple. Do I need CI/CD?
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
53 Accelerating model deployment with MLOps
Accelerating model deployment with MLOps
Google Cloud Tech
54 How Hawaii's Department of Human Services scaled with CCAI
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
55 Pricing API on our #Radar
Pricing API on our #Radar
Google Cloud Tech
56 How Recommendations AI for Media can boost customer retention
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
57 Troubleshooting: Node Not Ready Status
Troubleshooting: Node Not Ready Status
Google Cloud Tech
58 One weekend until Cloud Next 2023!
One weekend until Cloud Next 2023!
Google Cloud Tech
59 #GoogleCloudNext starts tomorrow!
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
60 #GoogleCloudNext will be demand!
#GoogleCloudNext will be demand!
Google Cloud Tech

Direct VPC egress on Cloud Run allows sending traffic to a VPC network without setting up a Serverless VPC Access connector. It's easier to set up, faster, can handle more traffic, and has lower costs. This feature is useful for managing traffic with firewall rules, getting static IPs for outbound requests, and connecting to internal IP addresses.

Key Takeaways
  1. Enable Direct VPC egress on a Cloud Run service
  2. Configure network access to send traffic directly to a VPC
  3. Use firewall rules to manage network traffic
  4. Get static IPs for outbound requests
  5. Connect to internal IP addresses
💡 Direct VPC egress has many advantages over VPC connectors, including lower costs, faster network path, and easier setup and management.

Related AI Lessons

Up next
Containers on Amazon ECS with Mama J
AWS Developers
Watch →