I dont have enough knowledge of gcp. But i am trying to purchase domain from gcp and i need to add domain to cloud run to access cloud run publicly. I need help. If you have start to end details. Please help.
Sign in with your Google account. If you don’t have a Google Cloud account, you can create one.
Step 3: Open Cloud Run
In the Google Cloud Console, navigate to “Cloud Run” from the left-hand navigation menu.
Step 4: Create a Service in Cloud Run
Click the “Create Service” button.
Choose the container image you want to run on Cloud Run. You can deploy a new revision or select an existing one.
Configure your service settings, including authentication, memory, and other options.
Click “Next” to proceed.
Step 5: Set Up the Domain Mapping
After your service is created, you’ll see it listed in the Cloud Run dashboard.
Click on the service name to open its details.
In the left-hand navigation, select “Custom domains.”
Click the “Add a custom domain” button.
Enter your purchased domain name and click “Continue.”
You’ll be prompted to verify your domain ownership, which usually involves adding a DNS record. You’ll receive instructions on how to do this from Google Domains.
Follow the verification steps, which might involve updating DNS records in Google Domains. Once verified, the custom domain will be linked to your Cloud Run service.
Step 6: Wait for DNS Propagation
DNS changes can take time to propagate globally, so it might not work immediately. Be patient, and check back after a few hours.
Once the DNS changes propagate, your Cloud Run service will be accessible using the custom domain.
And that’s it! You’ve successfully purchased a domain and connected it to your Cloud Run service.