donovanmuller / spring-cloud-deployer-openshift

A Spring Cloud Deployer SPI implementation for OpenShift 3
http://blog.switchbit.io/spring-cloud-deployer-openshift
Apache License 2.0
4 stars 10 forks source link

SCDF route naming uses '.' rather than '-' as a separator #47

Closed donovanmuller closed 7 years ago

donovanmuller commented 7 years ago

As reported here https://github.com/donovanmuller/spring-cloud-dataflow-server-openshift/issues/26

spring-cloud-dataflow-server-openshift creates a route with '.' instead of '-' creating a subdomain in the namespace. Openshift uses '-' as a separator between the namespace name and the service name when naming routes created with oc expose svc [service_name], or on the web console . Temporary measure is to delete the route created by SCDF and recreate it with Openshift facilities.

spring-cloud-dataflow-server-openshift example http://service.namespace.mydomain.com

openshift default http://service-namespace.mydomain.com

donovanmuller commented 7 years ago

As per https://docs.openshift.com/container-platform/latest/architecture/networking/routes.html#route-hostnames, should be <route-name>[-<namespace>].<suffix>