networkpolicy.yaml 377 B

1234567891011121314151617181920
  1. apiVersion: "cilium.io/v2"
  2. kind: CiliumNetworkPolicy
  3. description: "Allow HTTP GET /public from env=prod to app=service"
  4. metadata:
  5. name: "rule1"
  6. spec:
  7. endpointSelector:
  8. matchLabels:
  9. app: service
  10. ingress:
  11. - fromEndpoints:
  12. toPorts:
  13. - ports:
  14. - port: "443"
  15. protocol: TCP
  16. rules:
  17. http:
  18. - method: "GET"
  19. path: "/"