Getting Istio version from within a Pod/Container

Is there any way for a container to programmatically determine what version of Istio is running?

For example, if my container can hit an endpoint on the sidecar like 127.0.0.1:9999/version?

Thank you!

Are you within a container and want to get the version of the current sidecar?

We don’t have a direct /version endpoint but I think you should be able to do curl 127.0.0.1:15000/config_dump and there is an ISTIO_VERSION in there. Or you can run istioctl version (for control plane) or istioctl proxy-status (for sidecars)