Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ancientlore/topdog
topdog is an application used to demonstrate Istio features
https://github.com/ancientlore/topdog
demo golang istio kubernetes
Last synced: 5 days ago
JSON representation
topdog is an application used to demonstrate Istio features
- Host: GitHub
- URL: https://github.com/ancientlore/topdog
- Owner: ancientlore
- License: mit
- Created: 2018-03-13T21:29:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T18:38:03.000Z (over 1 year ago)
- Last Synced: 2024-11-13T17:48:37.902Z (2 months ago)
- Topics: demo, golang, istio, kubernetes
- Language: Go
- Size: 837 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# topdog
`topdog` is a simple Go application that is used to demonstrate some [Istio] features. See the full example at https://github.com/ancientlore/istio-talk.
`topdog` is designed to be run with three tiers. To build it locally:
$ got get github.com/ancientlore/topdog
Run the application from the `topdog` folder where you built it. To start the backend tier:
$ ./topdog -service_port 5002
To start the middle tier:
$ ./topdog -service_port 5001 -backend http://localhost:5002
To start the UI:
$ ./topdog -service_port 5000 -midtier http://localhost:5001
Then nagivate to http://localhost:5000/ to see the user interface.
Alternately, you can run it all in one step using:
$ ./topdog -service_port 5000 -midtier http://localhost:5000 -backend http://localhost:5000
> This is the same as just running `topdog`, since those values are the defaults.
In this case, it will use the same process for all three.
When running the backend, you can set the `version` command-line argument (or the `VERSION` environment variable) to values from 1 to 3. This makes the service weigh its results differently.