Replies: 1 comment 6 replies
-
Hi @6174495 (happy if you can put a name we can refer to :) ), Kiali provides two features related to check the status of the Control Plane and Data Plane in Istio. The plane is related to the status of the sidecars/proxies deployed into the workloads that belongs to the Mesh. One fundamental check is to inform the user if a proxy is synced with the control plane, that's the purpose of that query, to implement a similar https://istio.io/latest/docs/reference/commands/istioctl/#istioctl-proxy-status command but within Kiali. At least there was not an api to query the same information fetched in that query (talking about Istio 1.9, if Istio 1.10 has updated this endpoint probably this logic can be upgraded). |
Beta Was this translation helpful? Give feedback.
-
at lines 345-354 in kubernetes/istio.go
func (in *K8SClient) GetPodProxy(namespace, name, path string) ([]byte, error) {
return in.k8s.CoreV1().RESTClient().Get().
Timeout(httputil.DefaultTimeout).
Namespace(namespace).
Resource("pods").
SubResource("proxy").
Name(name).
Suffix(path).
DoRaw(in.ctx)
}
Why does Kiali access Istiod services through the proxy of the APIServer instead of directly accessing Istiod services?
Example of directly accessing the istiod service:
resp, err := http.Get("http://[istiod-address]/path")
if err != nil {
return err
}
Beta Was this translation helpful? Give feedback.
All reactions