Истио пилота открытия HTTP API документы - PullRequest
0 голосов
/ 11 декабря 2018
Пилотное обнаружение

обнаружило службу http, но на нее нет документов.Как я могу сделать запрос, как перечисление всех зарегистрированных сервисов через пилот API?

1 Ответ

0 голосов
/ 11 декабря 2018

Я только что нашел соответствующий документ и код:

Интерфейс отладки:

https://github.com/istio/istio/tree/master/pilot/pkg/proxy/envoy/v2

PILOT=istio-pilot.istio-system:9093

# What is sent to envoy
# Listeners and routes
curl $PILOT/debug/adsz

# Endpoints
curl $PILOT/debug/edsz

# Clusters
curl $PILOT/debug/cdsz

# General metrics
curl $PILOT/metrics

# All services/external services from all registries
curl $PILOT/debug/registryz

# All endpoints
curl $PILOT/debug/endpointz[?brief=1]

# All configs.
curl $PILOT/debug/configz

Список всех конечных точек: / v1 / registration

https://github.com/istio/istio/blob/master/pilot/pkg/proxy/envoy/discovery.go#L141

pprof
/debug/pprof/

healthz
/ready


mux.HandleFunc("/debug/edsz", s.edsz)
mux.HandleFunc("/debug/adsz", s.adsz)
mux.HandleFunc("/debug/cdsz", cdsz)
mux.HandleFunc("/debug/syncz", Syncz)

mux.HandleFunc("/debug/registryz", s.registryz)
mux.HandleFunc("/debug/endpointz", s.endpointz)
mux.HandleFunc("/debug/endpointShardz", s.endpointShardz)
mux.HandleFunc("/debug/workloadz", s.workloadz)
mux.HandleFunc("/debug/configz", s.configz)

mux.HandleFunc("/debug/authenticationz", s.authenticationz)
mux.HandleFunc("/debug/config_dump", s.ConfigDump)
mux.HandleFunc("/debug/push_status", s.PushStatusHandler)
...