Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to route to my defined clusters in rotor file mode configuration #31

Open
mehdihadeli opened this issue Oct 30, 2020 · 0 comments
Open

Comments

@mehdihadeli
Copy link

mehdihadeli commented Oct 30, 2020

Hi,
@9len I want to use rotor file mode configuration, this is my configurations:

clusters.yaml

- cluster: example-cluster-1
  instances:
    - host: 172.27.71.209
      port: 8002
    - host: 172.27.71.209
      port: 8001
- cluster: example-cluster-2
  instances:
    - host: 172.27.71.209
      port: 8002

my docker run commands :

docker run --name hello-world1 -d -p 8001:80 containersol/hello-world
docker run --name hello-world2 -d -p 8002:80 containersol/hello-world
docker run -v $(pwd)/:/data    \
  -e 'ROTOR_CMD=file' \
  -e 'ROTOR_CONSOLE_LEVEL=debug' \
  -e 'ROTOR_FILE_FORMAT=yaml' \
  -e 'ROTOR_FILE_FILENAME=/data/clusters.yaml' \
  -p 50000:50000 \
  turbinelabs/rotor:0.19.0
docker run \
  -e 'ENVOY_XDS_HOST=172.27.71.209' \
  -e 'ENVOY_XDS_PORT=50000' \
  -p 9999:9999 \
  -p 80:80 \
  turbinelabs/envoy-simple:0.19.0

Now, when I do a curl request with curl localhost:80 I didn't get any response from my hello world container!!
Also if I want to customize the route to serve each cluster in different routes, what do I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant