https://github.com/antham/kuma-example
https://github.com/antham/kuma-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/antham/kuma-example
- Owner: antham
- Created: 2023-01-06T08:13:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T16:10:57.000Z (over 3 years ago)
- Last Synced: 2025-08-02T06:30:29.773Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 45.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Install
Run all commands in the current folder.
Start the control plane :
Build first `docker-compose build` then run it with `docker-compose up control-plane`
Then generate the tokens for dataplanes in the `dataplane-config/tokens` folder:
Run `docker-compose exec control-plane generate-dataplane-token`
In 2 separated terminals run:
`docker-compose run service1`
`docker-compose run service2`
The address of the container is injected automatically in the dataplane config.
At this point we get 2 dataplanes running with the control plane but no services listening.
To start the example service run in a new terminal:
`docker-compose exec service1 service-with-healthcheck 127.0.0.1:8000`
Then you can request the service through the other datplane with:
`docker-compose exec service2 curl 127.0.0.1:9000`