solr-operator
solr-operator copied to clipboard
LoadBalancer option for common service
I have a setup on Google Kubernetes Engine where I deploy a cluster in each of three regions. To index data, I need access from outside the cluster, but all I need is an internal IP. I am using annotations that GKE provides for this but it requires being able to set spec.Type: LoadBalancer for the service.
apiVersion: v1
kind: Service
metadata:
annotations:
cloud.google.com/neg: '{"ingress":true}'
networking.gke.io/internal-load-balancer-allow-global-access: "true"
networking.gke.io/load-balancer-type: Internal
spec:
type: LoadBalancer
...
is there a way to set the type for the commonService
There is no way to currently do this, but it is something that we could look into.
My first thought is that the common service is used by the operator to communicate with the Solr Cloud within the Kubernetes cluster, so if we instead make it a loadBalancer service, would the same internal DNS entry still exist?