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.
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: allowlist-by-paths
namespace: serving-tests
rules:
- to:
- operation:
paths:
- /metrics # The path to collect metrics by system pod.