I have some projects that respond on same host but different path. I want to keep them separated in Openshift. Ie.:
First service
apiVersion: v1
kind: Route
metadata:
name: first-api
namespace: first-api
labels:
app: first-api
spec:
host: api.com.br
path: /first
to:
kind: Service
name: first-api
port:
targetPort: tcp-8080
Second setvice
apiVersion: v1
kind: Route
metadata:
name: second-api
namespace: second-api
labels:
app: second-api
spec:
host: api.com.br
path: /second
to:
kind: Service
name: second-api
port:
targetPort: tcp-8080
There are security restrictions enforced in the OpenShift router that prevent hosts in different namespaces from overlapping (the oldest route "claims" the name). We'd like to add more flexibility to disable this check in the future.