Date
1 - 5 of 5
Need Help. How to register custom routes to gorouter
Lakshman Mukkamalla
Hi cf devs,
I want to register some custom routes to the gorouter component of cloud foundry. What I understood was that this could be achieved by nats-pub command but when I try this command on the gorouter VM it was not recognized. Can anyone help me how to register custom routes to gorouter. https://docs.cloudfoundry.org/concepts/architecture/router.html What worked: curl -vvv "http://gorouterusername:gorouterpassword(a)gorouter_ip:gorouter_port/routes" This gives me the current routes that are registered. What did not work: nats-pub 'router.register' 'some custom route' OR Is there a rest call to register the custom routes? It would be of great help if someone can guide me on how to achieve the similar. Thanks. |
|
James Bayer
which cf-release are you using?
newer versions support an http api for trusted components to register routes. shannon is the PM for the routing team and can explain more and perhaps point to documentation. note there is an example of mysql registering a route with the previous approach in a bosh release here: https://github.com/cloudfoundry/cf-mysql-release/blob/master/jobs/cf-mysql-broker/templates/route-registrar_ctl.erb On Thu, Sep 3, 2015 at 4:20 PM, Lakshman Mukkamalla (lmukkama) < lmukkama(a)cisco.com> wrote: Hi cf devs, -- Thank you, James Bayer |
|
Mark St.Godard
The new routing-api and routing-api-cli allow you to register / unregister
toggle quoted message
Show quoted text
routes You will need to ensure you are also deploying routing-api with cf-release Routing API https://github.com/cloudfoundry-incubator/routing-api Routing API CLI https://github.com/cloudfoundry-incubator/routing-api-cli Cheers On Fri, Sep 4, 2015 at 7:53 AM, James Bayer <jbayer(a)pivotal.io> wrote:
which cf-release are you using? |
|
CF Runtime
Hi Lakshman,
We are wondering why you would like to add routes to the gorouter? Unfortunately there is not any way to add these untill the routing api becomes part of the official release. The NATS workaround you are trying to use requires the route to be published on a heartbeat interval. Cheers, CF OSS Release Integration Team On Fri, Sep 4, 2015 at 7:29 AM, Mark St.Godard <markstgodard(a)gmail.com> wrote: The new routing-api and routing-api-cli allow you to register / unregister |
|
Shannon Coen
I'll echo the Integration team's question. For what use cases do you want
toggle quoted message
Show quoted text
to register routes directly, rather than through the Cloud Controller API or cf CLI? The Routing API Mark mentioned also currently requires a heartbeat. Shannon Coen Product Manager, Cloud Foundry Pivotal, Inc. On Fri, Sep 4, 2015 at 1:52 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
Hi Lakshman, |
|