Enabling requests to Knative services when additional authorization policies are enabled

    You must meet the following prerequisites to use Istio AuthorizationPolicy:

    In addition to allowing your application path, you’ll need to configure Istio AuthorizationPolicy to allow health checking and metrics collection to your applications from system pods. You can allow access from system pods by paths.

    • /metrics

    The /metrics path allows the autoscaler pod to collect metrics. The /healthz path allows system pods to probe the service.

    1. apiVersion: security.istio.io/v1beta1
    2. kind: AuthorizationPolicy
    3. metadata:
    4. name: allowlist-by-paths
    5. namespace: serving-tests
    6. rules:
    7. - to:
    8. - operation:
    9. paths:
    10. - /metrics # The path to collect metrics by system pod.