Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3663

It is possible to use same host in different namespaces on Openshift Origin?

$
0
0

I have some projects that respond on same host but different path.I want to keep them separated in Openshift.Ie.:

First service

apiVersion: v1kind: Routemetadata:  name: first-api  namespace: first-api  labels:    app: first-apispec:  host: api.com.br  path: /first  to:    kind: Service    name: first-api  port:    targetPort: tcp-8080

Second setvice

apiVersion: v1kind: Routemetadata:  name: second-api  namespace: second-api  labels:    app: second-apispec:  host: api.com.br  path: /second  to:    kind: Service    name: second-api  port:    targetPort: tcp-8080

Viewing all articles
Browse latest Browse all 3663

Trending Articles