pilot-finder

module
v0.0.0-...-f12ef76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT

README

the mock pilot agent for test

Introduction

command

mock

Usage:

mock the multi agents connecting to pilot

Usage:
  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:

pilot-finder mock --namespace=test1 --pilotAddress=127.0.0.1:15010 --rate=5 --sn=10 --wn=2

xds

Usage:

mock a the request to the pilot discovery

Usage:
  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:

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

Directories

Path Synopsis
cmd
xds
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL