I have a jupyterhub service running on kubernetes. I have exposed the service via an internal Load balancer currently which exposes an ip address. I want to expose the service using a dns name (xyz.domain.com).
I refered to these docs that say to use ExternalName service type. However when I use the service type as ExternalName and pass externalName: xyz.domain.com. I get the error
“proxy.service: Additional property externalName is not allowed”.
Do you know what I might be missing?
Services of type ExternalName map a Service to a DNS name, not to a typical selector such as my-service or cassandra. You specify these Services with the spec.externalName parameter.
This is so you can refer to an external service from inside your K8s cluster using the internal k8s service name. It’s not for exposing your k8s service.
You’ll probably need to configure a loadbalancer or use an ingress, depending on your k8s cluster. If you need more help please share your full Z2JH config, along with details of how your K8s cluster is setup and managed.
If you’ve already got an external IP attached to your load balancer you need to the domain name to the IP on your DNS server, this is separate from K8s.