Expected output includes error message if pod outside mesh (#6748)

Co-authored-by: esnible <esnible@users.noreply.github.com>
This commit is contained in:
Istio Automation 2020-03-05 12:43:31 -08:00 committed by GitHub
parent 0e350476f3
commit db4e71372c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ pod is not part of the service mesh because it has no sidecar:
$ export DASHBOARD_POD=$(kubectl -n kube-system get pod -l k8s-app=kubernetes-dashboard -o jsonpath='{.items[0].metadata.name}')
$ istioctl x describe pod -n kube-system $DASHBOARD_POD
WARNING: kubernetes-dashboard-7996b848f4-nbns2.kube-system is not part of mesh; no Istio sidecar
--------------------
Error: failed to execute command on sidecar: error execing into kubernetes-dashboard-7996b848f4-nbns2/kube-system istio-proxy container: container istio-proxy is not valid for pod kubernetes-dashboard-7996b848f4-nbns2
{{< /text >}}
The command will not produce such a warning for a pod that is part of the mesh,