Before I begin, I would like to mention that I am on the free trial version of GKE. I have a simple server running in a GKE cluster. I have a service that I use to expose the server. I am trying to configure an Ingress Controller and attach it to this service.
Everything works perfectly if my service is of type LoadBalancer, NodePort. However, if my service is of type ClusterIP, I get an error saying
error while evaluating the ingress spec: service "default/simple-server" is type "ClusterIP"
, expected "NodePort" or "LoadBalancer"
GKE then stops trying to provision an IP for the ingress. Why can't I provision a service of type clusterIP and is there a work around?
I tried using annotations.kubernetes.io/ingress.class: "nginx"
and it still didn't work.