A brief copy of the GKE static IP tutorial is below.
First, deploy the sample web application manifest which contains the Deployment and a NodePort Service (required by Ingress):
kubectl apply -f https://raw.githubusercontent.com/ahmetb/gke-letsencrypt/master/yaml/sample-app.yaml
Create a static IP called to (will be used in the Ingress):
gcloud compute addresses create helloweb-ip --global
Then, deploy the Ingress using this manifest:
kubectl apply -f https://raw.githubusercontent.com/ahmetb/gke-letsencrypt/master/yaml/sample-ingress.yaml
Run kubectl get ingress
until you see the static IP address assigned to the
load balancer.
Visit this IP address on your browser.
After it works, update your domain name records (at your domain registrar or DNS provider) with this IP address.
Verify the domain name works in your browser before proceeding —use
http://
, as we don't have https://
yet.