I built simple cluster in GKE with two services using this tutorial https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
After finishing that I'm able to access my service using external IP address. So I bought domain for using this IP address. After setup A record in DNS settings to that IP address, domain doesn't work, it still loads and then show ERR_CONNECTION_TIMED_OUT. Do I need to do something in google console, or how I can make this IP public and accessed through domain?
Please refer to official documentation, which describes steps you need to take to configure domain names with static IP.
There are steps that you need to cover:
NETWORKING
section at GCP console, than VPC Network
-> External IP addresses
to ensure that you are running static IP address, not ephemeral one.Network services
-> Cloud DNS
. You need to create DNS zone
, where at DNS name line you have to wright your domain name. After creation you will see Add record set
, where you need to paste your external IP address.There is also a good tutorial at YouTube with setting up custom domain on GCP. Let me know if it works for you.