Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to direct my domain to front-end in my ingress?

Tengo mi servicio expuesto en el puerto 80 en nginx, tengo que crear el ingreso, pero no se como hacerlo para que el ingreso apunte a mi dominio.

0 1 846
1 REPLY 1

Hello,

As you have created an Ingress and want to point your domain to the Ingress, please keep in mind that, when you expose a web server on a domain name, you need the external IP address of an application to be a static IP that does not change.

By default, GKE allocates ephemeral external IP addresses [1] for HTTP applications exposed through an Ingress. Ephemeral addresses are subject to change. If you are planning to run your application for a long time, you must use a static external IP address [2].

After you reserve a static IP (example name: web-static-ip), you need to annotate that IP on the ingress manifest as described in the link [3].

Finally you need to configure your domain name record with your Domain name provider [4].

It is worth mentioning that further communication will be in English as it is our primary language for Google Groups and our ability to help in a foreign language is limited.

 

References: 
[1] https://cloud.google.com/compute/docs/ip-addresses#ephemeraladdress
[2] https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address
[3] https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/blob/HEAD/load-balancing/basic-ingr...
[4] https://cloud.google.com/kubernetes-engine/docs/tutorials/configuring-domain-name-static-ip#configur...

Top Labels in this Space