Diagnose connectivity failures between the Claude Compliance Collector pod and AI Guard or the Anthropic Compliance API using pod logs.
Procedure
- Check the pod logs for
exhausted_retriesevents whereerror_classisRateLimitedErroranderror_messagestarts withNetwork error on:kubectl -n "$NS" logs --selector=job-name="$LATEST_JOB" \ | jq -c 'select(.event=="exhausted_retries" and .error_class=="RateLimitedError" and (.error_message | startswith("Network error on")))'Theerror_messagefield indicates the source of the issue:-
Network error on POST https://<your-ai-guard-host>/...— The pod cannot reach the AI Guard endpoint. -
Network error on GET https://api.anthropic.com/...— The pod cannot reach the Anthropic Compliance API.

Note
Plain 429 rate-limit errors showerror_messagestarting withRate limited (429) on, notNetwork error on. If you do not seeNetwork error on, the issue is not a connectivity problem. -
- If you enabled
networkPolicy.enabled, confirm your cluster's CNI enforcesNetworkPolicyresources and that the policy is configured correctly.Whentrue, the policy restricts pod egress to cluster DNS (port 53) plus all TCP to any destination, excluding the cloud metadata IP (169.254.169.254). This requires a CNI that enforcesNetworkPolicyresources, such as Cilium or Calico.ANetworkPolicythat is silently unenforced (for example, on a CNI without policy support) will not block traffic, but a misconfigured one can produce the sameNetwork error onsymptoms shown above.
