CNI插件 kubectl get po n demo NAME READY STATUS RESTARTS AGE httpbin6878558fdc4c9gx 2/2 Running 0 38s kubectl get po n demo o yaml ... initContainers: args: istioiptables p "15001" z "15006" u "1337" m REDIRECT i '' x "" b '' d 15090,15021,15020 o 18181,18282 logoutputleveldefault:info runvalidation skipruleapply image: registryvpccrshuadong1.cnspinternal.ctyun.cn/library/proxyv2:1.20.0v1.7 imagePullPolicy: IfNotPresent name: istiovalidation ... 可以看到pod中注入的initContainers为istiovalidation容器,发起请求再查看sidecar日志可以看到流量被拦截到了sidecar: plaintext kubectl exec it n istiosystem istioeastwestgateway79567ccc4w4hg9 curl httpbin.demo.svc.cluster.local:8000/headers sv Trying 10.96.243.161:8000... Connected to httpbin.demo.svc.cluster.local (10.96.243.161) port 8000 ( 0) > GET /headers HTTP/1.1 > Host: httpbin.demo.svc.cluster.local:8000 > UserAgent: curl/7.81.0 > Accept: / > Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < server: istioenvoy < date: Tue, 11 Feb 2025 09:08:05 GMT < contenttype: application/json < contentlength: 203 < accesscontrolalloworigin: < accesscontrolallowcredentials: true < xenvoyupstreamservicetime: 1 < xrequestid: e6700048aa0144d2806bf8e5355c50f7 < xenvoydecoratoroperation: httpbin.demo.svc.cluster.local:8000/ < {"headers":{"Accept":"/","Host":"httpbin.demo.svc.cluster.local:8000","UserAgent":"curl/7.81.0","XB3Sampled":"0","XB3Spanid":"abfdf79e32accb74","XB3Traceid":"3051a310747c75f7abfdf79e32accb74"}} Connection