> 添加到 Ambient 网格中，应改为：</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: my-app-allow-ingress-web
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/name: my-app
  ingress:
  - ports:
    - port: 8080
      protocol: TCP
    - port: 15008
      protocol: TCP</code></pre><h2 id=ambient-health-probes-and-kubernetes-networkpolicy>Ambient、健康探测和 Kubernetes NetworkPolicy</h2><p