获取istio-proxy所有配置
kubectl -n test exec auhss-v1-769dc687ff-479r4 -c istio-proxy -- curl http://localhost:15000/config_dump > test.json
配置istio-proxy日志级别为debug
# -n 名空间
# server-v1-6dfd6b9846-c2ch6 容器名
kubectl -n mgec exec server-v1-6dfd6b9846-c2ch6 -c istio-proxy -- curl -XPOST -s -o /dev/null http://localhost:15000/logging?level=debug
# 通过pod注解方式设置日志级别
template:
metadata:
annotations:
sidecar.istio.io/logLevel: debug
查看Prometheus收集的istio指标
istio_requests_total{response_flags="UC", response_code="503", reporter="destination"}