In Openshift I am used to expose my service outside the cluster through a route. That will automatically create a new "domain name" that I can use to access my application from e.g. my local PC on the local network.
That new doman name is not automatically made public to the internet but it works automatically on the local network so I assume there is some DNS server running - maybe as part of the OpenShift platform - where these routes/DNS names gets added/removed from automatically.
Now I am working on kubernetes and have created an Ingress object for my service/application:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
name: my-app
namespace: my-ns
spec:
rules:
- host: ???
http:
paths:
- backend:
serviceName: my-app
servicePort: 8080
path: /hello
But how do I fill out the host?
Do I manually have to contact the DNS server admin each time I need to do this and get him to create a new DNS record with a uniqe name on the local network?
Or is there some standard/automated way to do this in Kubernetes - similar to OpenShift?