Herb Guo
Herb Guo

Reputation: 21

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

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 !

Upvotes: 2

Views: 572

Answers (1)

Nikhita Raghunath
Nikhita Raghunath

Reputation: 4454

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.

Upvotes: 1

Related Questions