시작하기 전에
- 실습에서는 정해진 기간 동안 Google Cloud 프로젝트와 리소스를 만듭니다.
- 실습에는 시간 제한이 있으며 일시중지 기능이 없습니다. 실습을 종료하면 처음부터 다시 시작해야 합니다.
- 화면 왼쪽 상단에서 실습 시작을 클릭하여 시작합니다.
In this exercise, you deploy a Cloud Run service and use Eventarc to receive events from Pub/Sub. In the second part of the lab, you do the same on an Anthos GKE cluster with the Cloud Run for Anthos offering.
In this lab, you learn how to:
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
Sign in to Google Skills using an incognito window.
Note the lab's access time (for example, 1:15:00), and make sure you can finish within that time.
There is no pause feature. You can restart if needed, but you have to start at the beginning.
When ready, click Start lab.
Note your lab credentials (Username and Password). You will use them to sign in to the Google Cloud Console.
Click Open Google Console.
Click Use another account and copy/paste credentials for this lab into the prompts. If you use other credentials, you'll receive errors or incur charges.
Accept the terms and skip the recovery resource page.
In this task, you review and prepare the already created Anthos GKE cluster to execute Cloud Run for Anthos. First, you verify that the GKE cluster has been registered in an Anthos Fleet. Second, you confirm that Anthos Service Mesh has been installed in the cluster as a prerequisite to installing Cloud Run for Anthos. Third, you enable and install Cloud Run for Anthos in the cluster.
In the Google Cloud Console, on the Navigation menu
(), click Kubernetes Engine > Clusters.
Notice that a new GKE cluster has been created.
Click Workloads, and verify that the cluster is running the Anthos Service Mesh components istio-ingressgateway and istiod-asm.
On the Navigation menu, click Anthos > Clusters, and then verify that the cluster has been registered and appears in the list of Anthos managed clusters.
Click Activate Cloud Shell (). If
prompted click Continue.
In Cloud Shell, set the Zone environment variable:
In Cloud Shell, initialize the environment variables:
If this step fails, wait 30 seconds and try again.
When the service URL is displayed, the deployment is complete.
When a message is published to the Pub/Sub topic, the event trigger sends messages to the event receiver service deployed on Cloud Run.
This creates a new Pub/Sub topic and a trigger for it called events-pubsub-trigger. The Pub/Sub subscription persists regardless of activity and does not expire.
The event is sent to the Cloud Run service, which logs the event message.
To view the event message, in the Google Cloud Console, navigate to Cloud Run.
Click on the helloworld-events-pubsub-tutorial service.
On the Logs tab, look for the "Hello, Runner!" message.
Congratulations! You deployed a Cloud Run application and used Eventarc to trigger events from Pub/Sub.
The following roles are bound:
Deploy the container image to Cloud Run for Anthos:
If the command fails, the Anthos GKE cluster is not yet ready to accept Cloud Run for Anthos services. Wait a couple of minutes and try again.
This creates a new Pub/Sub topic and a trigger for it called pubsub-trigger. The Pub/Sub subscription persists regardless of activity and does not expire.
The event is sent to the Cloud Run for Anthos service, which logs the event message.
To view the event message in the service logs, on the Navigation menu, click Kubernetes Engine > Applications.
Click on Go to List of Services.
Click on the subscriber-service.
On the Logs tab, look for the "Hello, Cloud Run on Anthos!" message.
Congratulations! You deployed a Cloud Run for Anthos application and used Eventarct to trigger events from Pub/Sub.
When you have completed your lab, click End Lab. Google Skills removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Copyright 2026 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
현재 이 콘텐츠를 이용할 수 없습니다
이용할 수 있게 되면 이메일로 알려드리겠습니다.
감사합니다
이용할 수 있게 되면 이메일로 알려드리겠습니다.
한 번에 실습 1개만 가능
모든 기존 실습을 종료하고 이 실습을 시작할지 확인하세요.