egress_ip.yaml 289 B

123456789101112131415
  1. apiVersion: networking.k8s.io/v1
  2. kind: NetworkPolicy
  3. metadata:
  4. name: deny-order-svc2item-svc
  5. namespace: deepflow-otel-spring-demo
  6. spec:
  7. podSelector:
  8. matchLabels:
  9. app: svc-order
  10. policyTypes:
  11. - Egress
  12. egress:
  13. - to:
  14. - ipBlock:
  15. cidr: 10.244.3.34/16