First of all, create a GCP Kubernetes Engine cluster, and connect to the cluster
Change proyect-name with your GCP proyect in the commands and in deployment.yaml Then execute the following commands
cd image
gcloud builds submit --tag gcr.io/proyect-name/kubernetes-end-to-end-example .
cd ..
kubectl apply -f deployment.yaml
kubectl apply -f lb-service.yaml
kubectl describe service end-to-end-example-lb
Then check the ip in a browser. It should say 'Hello World'
kubectl delete services end-to-end-example-lb
kubectl delete deployment end-to-end-example