How I get istio object status(e.g virtualservice running status) from kubernetes API or other ways?

7/15/2019

As the title, I want to get the istio object running status from the kubernetes platform but the kubernetes API not support CRS object's status, so hope someone help me, give me the solution, thank you !

-- Herb Guo
istio
kubernetes

1 Answer

7/15/2019

You might not have permissions to update a custom resource's status, but you can get it by doing a GET API call on the object. The GET API call will return the complete object, along with the status part.

Alternatively, you can also see the status by doing a kubectl get virtualservice -o="jsonpath={.status}".

Here is an example on how to use the API to issue a GET API call on a custom resource.

-- Nikhita Raghunath
Source: StackOverflow