Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whalecold/pilot-finder
https://github.com/whalecold/pilot-finder
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/whalecold/pilot-finder
- Owner: whalecold
- License: mit
- Created: 2022-12-22T12:47:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-27T09:23:55.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T17:51:30.371Z (3 months ago)
- Language: Go
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
the mock pilot agent for test
### Introduction
### command
#### mock
Usage:
```shell
mock the multi agents connecting to pilotUsage:
pilot-finder mock [flags]Flags:
--ap string the address prefix, use for generator the address of workload entry (default "192.168")
-h, --help help for mock
--namespace string specify the namespace where se located. (default "default")
--pilotAddress string specify the pilot-discovery address (default "127.0.0.1:15010")
--rate float specify rate limit to connect to pilot. (default 10)
--sn int serviceEntry number (default 1)
--wn int workloadEntry number per serviceEntry (default 1)
```Example:
```shell
pilot-finder mock --namespace=test1 --pilotAddress=127.0.0.1:15010 --rate=5 --sn=10 --wn=2
```#### xds
Usage:
```shell
mock a the request to the pilot discoveryUsage:
pilot-finder xds [flags]Flags:
--agent string agent type (default "sidecar")
--discoveryAddress string specify the pilot-discovery address (default "127.0.0.1:15010")
-h, --help help for xds
--ip string the address of the agent (default "127.0.0.1")
--namespace string the agent location namespace (default "default")
--podName string the agent name (default "pod")
--suffix string the cluster domain suffix (default "svc.cluster.local")
--url string specify the url type of xds, options for lds|rds|cds (default "lds")```
Example:
```shell
pilot-finder mock --url=lds --namespace=test --ip=127.0.0.1```
### RoadMap
- [ ] support encryption connection
- [ ] add static information
- [ ] support more xDS protocol
- [ ] helm install
- [ ] makefile