-
Notifications
You must be signed in to change notification settings - Fork 8k
istioctl x proxy-status
via istio agents.
#40623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2c7af56
to
3e1aa6f
Compare
3e1aa6f
to
c36f181
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
0290557
to
751224d
Compare
eecfec6
to
7d21e6f
Compare
@therealmitchconnors Wam reminder |
7d21e6f
to
e2a7cad
Compare
To wait for #40721, I set this to |
As #40721 supports the 15004 port as well, don't need to wait for the PR. |
e2a7cad
to
0fa5de9
Compare
Co-authored-by: John Howard <howardjohn@google.com>
6901a76
to
ff19141
Compare
/retest |
* `istioctl ps` via istio agents. * Fix lint errors * Fix lint errors * Use k8s client_go instead of RESTClient * Update pkg/kube/client.go Co-authored-by: John Howard <howardjohn@google.com> * Use constant for "status.phase=Running" * Use the revision in the annotation instead of labels for the injected pods * Add xds-via-agents-limit flag * Reflect the comments and refactoring Co-authored-by: John Howard <howardjohn@google.com>
* `istioctl ps` via istio agents. * Fix lint errors * Fix lint errors * Use k8s client_go instead of RESTClient * Update pkg/kube/client.go Co-authored-by: John Howard <howardjohn@google.com> * Use constant for "status.phase=Running" * Use the revision in the annotation instead of labels for the injected pods * Add xds-via-agents-limit flag * Reflect the comments and refactoring Co-authored-by: John Howard <howardjohn@google.com>
/cherrypick release-1.15 |
@ingwonsong: #40623 failed to apply on top of branch "release-1.15":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@ingwonsong: new issue created for failed cherrypick: #41040 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
* `istioctl ps` via istio agents. * Fix lint errors * Fix lint errors * Use k8s client_go instead of RESTClient * Update pkg/kube/client.go Co-authored-by: John Howard <howardjohn@google.com> * Use constant for "status.phase=Running" * Use the revision in the annotation instead of labels for the injected pods * Add xds-via-agents-limit flag * Reflect the comments and refactoring Co-authored-by: John Howard <howardjohn@google.com> Co-authored-by: John Howard <howardjohn@google.com>
* `istioctl ps` via istio agents. * Fix lint errors * Fix lint errors * Use k8s client_go instead of RESTClient * Update pkg/kube/client.go Co-authored-by: John Howard <howardjohn@google.com> * Use constant for "status.phase=Running" * Use the revision in the annotation instead of labels for the injected pods * Add xds-via-agents-limit flag * Reflect the comments and refactoring Co-authored-by: John Howard <howardjohn@google.com>
* Send only the Cluster ID (#40477) * Add Tap gRPC handler to Istio Agent. (#40566) * Add Tap GRPC handler to Istio Agent. * Fix lint errors * Add the integration test * `istioctl x proxy-status` via istio agents. (#40623) * `istioctl ps` via istio agents. * Fix lint errors * Fix lint errors * Use k8s client_go instead of RESTClient * Update pkg/kube/client.go Co-authored-by: John Howard <howardjohn@google.com> * Use constant for "status.phase=Running" * Use the revision in the annotation instead of labels for the injected pods * Add xds-via-agents-limit flag * Reflect the comments and refactoring Co-authored-by: John Howard <howardjohn@google.com> Co-authored-by: John Howard <howardjohn@google.com>
* `istioctl ps` via istio agents. * Fix lint errors * Fix lint errors * Use k8s client_go instead of RESTClient * Update pkg/kube/client.go Co-authored-by: John Howard <howardjohn@google.com> * Use constant for "status.phase=Running" * Use the revision in the annotation instead of labels for the injected pods * Add xds-via-agents-limit flag * Reflect the comments and refactoring Co-authored-by: John Howard <howardjohn@google.com>
This PR proposes an experimental option
--xds-via-agents
only foristioctl x proxy-status
command, which sends a query foristioctl x proxy-status
via istio agents, instead of direct query toistiod
.istioctl x proxy-status
try to find all the istiod instances by searching pods inistio-system
namespace.But, if we use the external istiods, this way may not work.
For example,
istiod
can be deployed in the other cluster or out of K8S. Moreover, in front of the istiod instances, some sort of load balancer can be set to distribute the connections to multiple istiods. This kind of configuration may happen when the customer want to isolate their control plane from the workloads, or when they are using some managed control plane.In such case,
istioctl x proxy-status
cannot enumerate and access to each istiod instance directly. So, this PR proposes to accessistiod
via "istio agent".Please note that, by #40566, we can make a query to istiod via istio agents efficiently.