menu
arrow_back

Clean up unused IP addresses

Clean up unused IP addresses

1 个小时 7 个积分

GSP646

Google Cloud Self-Paced Labs

Overview

In this lab, you will use Cloud Functions and Cloud Scheduler to identify and clean up wasted cloud resources. On Google Cloud Platform (GCP), static IP addresses are a free resource when they’re attached to a load balancer or virtual machine (VM) instance. When a static IP address is reserved, but not used, it accumulates an hourly charge. In apps that heavily depend on static IP addresses and large-scale dynamic provisioning, this waste can become significant over time.

What you'll do

  • Create a Compute Engine VM with a static external IP address and a separate unused static external IP address

  • Deploy a Cloud Function to identify unused addresses

  • Create a Cloud Scheduler job to schedule the function to run by using an HTTP trigger

加入 Qwiklabs 即可阅读本实验的剩余内容…以及更多精彩内容!

  • 获取对“Google Cloud Console”的临时访问权限。
  • 200 多项实验,从入门级实验到高级实验,应有尽有。
  • 内容短小精悍,便于您按照自己的节奏进行学习。
加入以开始此实验
分数

—/100

Enable the Cloud Scheduler API

运行步骤

/ 10

Create two static IP addresses

运行步骤

/ 20

Create an instance with static IP address created earlier.

运行步骤

/ 20

Deploy cloud function

运行步骤

/ 20

Create App Engine Application

运行步骤

/ 10

Run a cloud schedular job

运行步骤

/ 10

Confirm the deletion of unused IP address

运行步骤

/ 10