# Configuring istioctl for a remote cluster

DevFeed: [Configuring istioctl for a remote cluster](<https://devfeed.tech/articles/configuring-istioctl-for-a-remote-cluster-48756.md>)

Original publisher: [Read original article](<https://istio.io/latest/blog/2022/istioctl-proxy/>)

Author: Frank Budinsky (IBM)

Published: 2022-03-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Istio](<https://devfeed.tech/sources/istio-blog.md>)

Topics: [istio](<https://devfeed.tech/topics/istio.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [control-plane](<https://devfeed.tech/topics/control-plane.md>), [proxy](<https://devfeed.tech/topics/proxy.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [commands](<https://devfeed.tech/tags/commands.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [external](<https://devfeed.tech/tags/external.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [istio](<https://devfeed.tech/tags/istio.md>), [istioctl](<https://devfeed.tech/tags/istioctl.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [mesh](<https://devfeed.tech/tags/mesh.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [multicluster](<https://devfeed.tech/tags/multicluster.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [remote](<https://devfeed.tech/tags/remote.md>), [services](<https://devfeed.tech/tags/services.md>)

## AI overview

A tutorial on configuring istioctl to work with remote clusters, external control planes, and multicluster Istio deployments. It explains why proxy-status cannot access remote istiod instances by default and how an external proxy service can aggregate responses from all instances.

## Source excerpt

When using the istioctl CLI on a remote cluster of an external control plane or a multicluster Istio deployment, some of the commands will not work by default. For example, istioctl proxy-status requires access to the istiod service to retrieve the status and configuration of the proxies it's managing. If you try running it on a remote cluster, you'll get an error message like this: $ istioctl proxy-status Error: unable to find any Istiod instances Notice that the error message doesn't just say that it's unable to access the istiod service, it specifically mentions its inability to find istiod instances. This is because the istioctl proxy-status implementation needs to retrieve the sync status of not just any single istiod instance, but rather all of them. When there is more than one istiod instance (replica) running, each instance is only connected to a subset of the service proxies running in the mesh. The istioctl command needs to return the status for the entire mesh, not just the subset managed by one of the instances. In an ordinary Istio installation where the istiod service is running locally on the cluster (i.e., a primary cluster), the command is implemented by simply finding all of the running istiod pods, calling each one in turn, and then aggregating the result before returning it to the user. CLI with local access to istiod pods When using a remote cluster, on the other hand, this is not possible since the istiod instances are running outside of the mesh cluster and not accessible to the mesh user. The instances may not even be deployed using pods on a Kubernetes cluster. Fortunately, istioctl provides a configuration option to address this issue. You can configure istioctl with the address of an external proxy service that will have access to the istiod instances. Unlike an ordinary load-balancer service, which would delegate incoming requests to one of the instances, this proxy service must instead delegate to all of the istiod instances, aggregate t