This message was deleted.
# permit-saas
s
This message was deleted.
a
Hi @Ryan Barriger, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
p
Hey, thanks for reaching out ! It seems our team is a little busy right now, a human will be with you within the next hour or so. In the meantime, can I help you ?
a
You're correct to change the path to
/health
- that's the proper liveness probe endpoint for the PDP (1) . The liveness probe endpoint is
/health
and it returns a 200 status code if the PDP is alive and healthy . The 401 errors you're seeing are likely authentication-related. The PDP's health endpoints might be protected by default. You can make the health check endpoints accessible without authentication by setting the
PDP_ALLOW_METRICS_UNAUTHENTICATED
environment variable to
True
(2) . Here's what your configuration should look like: For the container ports and probes, the PDP uses port 7000 by default (containerPort 7000 is correct) (1) . The liveness probe configuration should use
/health
as the path . The PDP also exposes
/healthy
for readiness probes and
/ready
for startup probes . An unhealthy PDP will return a 503 status code when the PDP failure rate exceeds the configured threshold . You can configure the failure threshold using environment variables : •
PDP_OPA_CLIENT_FAILURE_THRESHOLD_PERCENTAGE
- The failure threshold percentage for the Policy Engine healthcheck (default is 10%) •
PDP_OPA_CLIENT_FAILURE_THRESHOLD_INTERVAL
- The interval (in seconds) to calculate the failure threshold (default is 60 seconds) Since you're experiencing issues with the health probes, could you please provide: 1. Which Workspace / Project / Env you are using 2. What calls are you performing (as SDK code or CURL) 3. Which exact PDP version you are running (you mentioned 0.9.8 and 0.9.7) 4. Any relevant logs from your PDP This will help our engineers investigate the 401 errors you're encountering.
To learn more, see the sources I considered: [[1] Deploying PDP using raw Kubernetes YAMLs](https://docs.permit.io/how-to/deploy/cloud-hosts/kubernetes-raw) [[2] Configurations](https://docs.permit.io/concepts/pdp/configuration)