Istio试点发现http api文件?

问题描述 投票:0回答:1

飞行员发现已公开http服务,但没有文件。如何通过pilot api查询列出所有注册的服务?

istio
1个回答
1
投票

我刚刚找到了相关的文档和代码:

调试接口:

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)
© www.soinside.com 2019 - 2024. All rights reserved.