我们有一个将导出流量路由到服务网格之外的外部服务的最小示例。
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: nexus-test
namespace: REDACTED
spec:
hosts:
- nexus.REDACTED
ports:
- number: 443
name: https
protocol: HTTPS
resolution: DNS
location: MESH_EXTERNAL
但是我们没有看到流量使用命令通过 sidecar istio-proxy
kubectl logs $SOURCE_POD -c istio-proxy | tail
此外,我们没有使用以下命令查看混音器上的流量:
kubectl -n istio-system logs -l istio-mixer-type=telemetry -c mixer | grep 'nexus'
如文档 https://istio.io/docs/tasks/traffic-management/egress/egress-control/#access-an-external-https-service 中的建议
任何人都可以帮助我们有什么问题吗?
最好的祝福,
福柏格
最佳答案
现在可以了。它可能与服务网格中的其他服务发生冲突。
关于kubernetes - Istio 导出流量不通过 istio istio-proxy sidecar 路由,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59268148/