add the endpoints command example (#2553)

This commit is contained in:
Fei Xu 2018-09-12 22:04:32 +08:00 committed by Martin Taillefer
parent 4f006e2f95
commit 2523001210
1 changed files with 12 additions and 2 deletions

View File

@ -258,7 +258,7 @@ one route that matches on everything. This route tells Envoy to send the request
`serviceName` field as a key to look up the list of Endpoints and proxy the request to one of them. `serviceName` field as a key to look up the list of Endpoints and proxy the request to one of them.
{{< text bash json >}} {{< text bash json >}}
$ istioctl proxy-config clusters --fqdn reviews.default.svc.cluster.local -o json $ istioctl proxy-config clusters productpage-v1-6c886ff494-7vxhs --fqdn reviews.default.svc.cluster.local -o json
[ [
{ {
"name": "outbound|9080||reviews.default.svc.cluster.local", "name": "outbound|9080||reviews.default.svc.cluster.local",
@ -279,6 +279,16 @@ one route that matches on everything. This route tells Envoy to send the request
] ]
{{< /text >}} {{< /text >}}
1. To see the endpoints currently available for this cluster use the `proxy-config` endpoints command.
{{< text bash json >}}
$ istioctl proxy-config endpoints productpage-v1-6c886ff494-7vxhs --cluster outbound|9080||reviews.default.svc.cluster.local
ENDPOINT STATUS CLUSTER
172.17.0.17:9080 HEALTHY outbound|9080||reviews.default.svc.cluster.local
172.17.0.18:9080 HEALTHY outbound|9080||reviews.default.svc.cluster.local
172.17.0.5:9080 HEALTHY outbound|9080||reviews.default.svc.cluster.local
{{< /text >}}
## Inspecting Bootstrap configuration ## Inspecting Bootstrap configuration
So far we have looked at configuration retrieved (mostly) from Pilot, however Envoy requires some bootstrap configuration that So far we have looked at configuration retrieved (mostly) from Pilot, however Envoy requires some bootstrap configuration that
@ -298,4 +308,4 @@ $ istioctl proxy-config bootstrap -n istio-system istio-ingressgateway-7d6874b48
"buildVersion": "0/1.8.0-dev//RELEASE" "buildVersion": "0/1.8.0-dev//RELEASE"
}, },
... ...
{{< /text >}} {{< /text >}}