An open API service indexing awesome lists of open source software.

https://github.com/orange-cloudfoundry/cf-discovery

Simple app to retrieve all routes from gorouter(s).
https://github.com/orange-cloudfoundry/cf-discovery

Last synced: 5 months ago
JSON representation

Simple app to retrieve all routes from gorouter(s).

Awesome Lists containing this project

README

          

# CF-Discovery
Simple app to retrieve all routes from gorouter(s).

## How it works

Cf-Discovery will do a reverse proxy with load balancing on a set of gorouters given and will extract route table,
filtering it to only get the route (no route mapping can be see).
Finally user can see those route on a dashboards.

## Deploy

This tutorial explain how to deploy on cloud foundry.

1. Clone this repo
2. modify the [services.tpl.json](/services.tpl.json) with your configuration, parameters are:
- `gorouter_username` **(Required)**: username to connect to gorouter(s) instance.
- `gorouter_password` **(Required)**: password to connect to gorouter(s) instance.
- `gorouter_backends` **(Required)**: A list containing ips of all gorouter instances.
- `gorouter_port` *(Optional, Default: `8080`)*: port to connect to gorouter(s) instance.
- `gorouter_endpoint` *(Optional, Default: `/routes`)*: endpoint which give routes from gorouter.
- `gorouter_protocol` *(Optional, Default: `http`)*: protocol to use to connect to gorouter.
- `filtered_domains` *(Optional, Default: `null`)*: list of domains where routes should be hidden.
3. create an user provided service from this file: `cf cups cf-discovery-config -p services.tpl.json`
4. modify [manifest.yml](/manifest.yml) as wanted and push it (`cf push`)