503 Service Temporarily Unavailable nginx: meaning and fix

nginx 503 means a rate limit, no ready endpoints or the upstream itself. We reproduced each; the access log upstream fields tell you which you hit.

Ben Gervais
Ben Gervais, Engineer at Arvo AILinkedInGitHub
Applies tonginx returning 503 Service Temporarily Unavailable: the Kubernetes ingress-nginx controller, stock nginx as a reverse proxy, and an upstream that sends its own 503. The same faults repeated on NGINX Gateway Fabric, Envoy Gateway and Traefik
Verified onKubernetes server v1.37.0, kind v0.33.0, kubectl client v1.37.2, ingress-nginx controller v1.15.1 (nginx/1.27.1), nginx:1.27-alpine (nginx/1.27.5), python:3.12-alpine (Python 3.12.16), NGINX Gateway Fabric 2.8.1 (nginx/1.31.7), Envoy Gateway v1.9.3 (Envoy 1.39.5), Traefik v3.7.17, F5 NGINX Ingress Controller 5.7.1 (rate limit only), 2026-11-05
Lab folderscenarios/26-ingress-503-no-ready-endpoints, transcripts in runs/search-2026-11-05/26-ingress-503-no-ready-endpoints

"503 Service Temporarily Unavailable" is the error page nginx generates itself. The usual causes are a limit_req or limit_conn rejection, a return 503, or, on the Kubernetes ingress-nginx controller, a Service with no ready endpoints. An application behind nginx can also send a 503, and the access log separates the two: an $upstream_status of - means nginx never contacted an upstream, and 503 there means the upstream sent it. Then read the error log: limiting requests is a rate limit, and ingress-nginx logs Service "ns/name" does not have any active Endpoint when no pod is ready. We reproduced each cause in a kind cluster on 2026-11-05. Apart from the Date header, the rate limit response and the no-endpoints response were byte for byte identical, so the page in your browser cannot tell you which one you hit.

At a glance

Access log, upstream fieldsError or controller logLikely causeConfirm withFix
All -Service "ns/name" does not have any active Endpointingress-nginx: no ready pod behind the Service (scaled to 0, failing readiness, selector matches nothing)kubectl get endpointslices with the ready condition (below)Service with no endpoints for selectors; this page for readiness
All -Error obtaining Endpoints for Service "ns/name"ingress-nginx: the Ingress names a Service that does not existkubectl get svc <name>Create the Service or correct the Ingress
All -, upstream name ends in a port the Service lacksNo specific line in our runingress-nginx: the Ingress names a port the Service does not haveCompare the [ns-svc-port] field with kubectl get svcCorrect the port in the Ingress
All -limiting requests, excess: ...limit_req (limit-rps, limit-rpm)The zone name in the line, which starts with namespace and IngressRaise the limit, or fix the client key. Return 429
All -limiting connections by zonelimit_conn (limit-connections)SameSame
All -error reading Ingress annotationingress-nginx: a bad annotation denied the location, for example an auth-secret that does not existLocation denied in the rendered configFix the annotation or create the Secret
All -NothingA return 503 in the config, usually maintenance modeSearch the config for return 503Remove it when the work ends
An address, status 503NothingThe upstream sent the 503The response body; the upstream's logFix the upstream
503, 200 with a final status of 200NothingHidden: proxy_next_upstream http_503 retried a failing podTwo addresses in $upstream_addrFix the failing pod

If you are on stock nginx and came here because every upstream is down: that is a 502, not a 503, in our tests.

What does 503 Service Temporarily Unavailable mean?

RFC 9110 says 503 means the server "is currently unable to handle the request due to a temporary overload or scheduled maintenance". The RFC's name for the code is "Service Unavailable". The word "Temporarily" is nginx's own: it is in nginx's status line table and its built-in error page. So if you see "503 Service Temporarily Unavailable", an nginx almost certainly wrote that page. Which nginx, and why, is the question.

This is what the ingress-nginx controller returned for a Service with no ready pods:

kubectl -n r503 exec curl -- curl -si http://ingress-nginx-controller.ingress-nginx.svc/items
HTTP/1.1 503 Service Temporarily Unavailable
Date: Thu, 05 Nov 2026 23:09:29 GMT
Content-Type: text/html
Content-Length: 190
Connection: keep-alive

<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

There is no Server header, and the footer says nginx with no version, because the controller sets server_tokens off and more_clear_headers Server (both are in its rendered config). Stock nginx sends Server: nginx/1.27.5 and prints the version in the footer.

How do you tell whether nginx or the upstream sent the 503?

We compared four sources of a 503 through the same controller. The client sees very little:

Who produced itStatus line (HTTP/1.1)BodyServer headerAccess log, upstream fields
Controller, no ready endpoints503 Service Temporarily Unavailablenginx HTML, 190 bytesNone- - - -
Controller, limit_req503 Service Temporarily UnavailableSame bytesNone- - - -
An nginx behind the controller, return 503, server_tokens off503 Service Temporarily UnavailableSame bytesNone10.244.1.22:8080 190 0.000 503
Python app503 Service UnavailableThe app's JSONNone10.244.2.14:8080 68 0.001 503

The first three responses compared equal once the Date line was removed, with cmp and with the same checksum:

identical
b36ec3fbdc57df668aa32b3eee568c4f  /tmp/a
b36ec3fbdc57df668aa32b3eee568c4f  /tmp/b

Four things follow:

  • The Server header does not identify the upstream. nginx does not pass Server from a proxied response by default, so on stock nginx an app's 503 still says Server: nginx/1.27.5, and on ingress-nginx there is no header at all. With proxy_pass_header Server, ours showed Server: demo-app/1.0. Envoy Gateway and Traefik do pass it through.
  • The reason phrase is a useful tell on HTTP/1.1. nginx kept the app's own wording, 503 Service Unavailable, so the word "Temporarily" points at an nginx-written page. It does not survive HTTP/2: through the controller's TLS port both cases printed HTTP/2 503 with nothing after the number.
  • The body is a good tell until it is not. JSON means the app, but an nginx behind the controller with server_tokens off produces the identical HTML, and proxy_intercept_errors or custom-http-errors replaces the app's body with yours.
  • $upstream_status is the one field that was right in all four cases. It needs server-side log access, so read it first if you have any.

The ingress-nginx default log format already has these fields, after the two bracketed upstream names: $upstream_addr $upstream_response_length $upstream_response_time $upstream_status $req_id. Stock nginx needs them added to log_format; the default combined format does not record them.

10.244.1.21 - - [05/Nov/2026:23:09:29 +0000] "GET /items HTTP/1.1" 503 190 "-" "curl/8.12.1" 111 0.000 [shop-api-8080] [] - - - - 6609907c27065de95363bd20295cdd7b
10.244.1.21 - - [05/Nov/2026:23:10:05 +0000] "GET /items HTTP/1.1" 503 32 "-" "curl/8.12.1" 111 0.001 [shop-api-8080] [] 10.244.2.20:8080 32 0.001 503 7c2a237aee916b2908d0001cc0ac6667

(trimmed: one line each from 01-fault.txt and 02-fix.txt.)

Same URL, same status, 36 seconds apart, and two different incidents: the first line never reached a pod. To sort a whole incident at once, split the last 15 minutes of 503s by whether an upstream was contacted:

kubectl -n ingress-nginx logs deploy/ingress-nginx-controller --since=15m | grep -E '" 503 [0-9]+ ' | sed -E 's/.* \[([^]]*)\] \[[^]]*\] (.*) [0-9a-f]{32}$/\1 \2/' | awk '{print $1, ($2=="-" ? "generated-by-nginx" : "sent-by-upstream")}' | sort | uniq -c
      1 custom-default-backend-r503-errors sent-by-upstream
     52 r503-backend-8080 generated-by-nginx
      2 r503-backend-8080 sent-by-upstream
      1 r503-backend-9999 generated-by-nginx
      1 r503-badselector-8080 generated-by-nginx
      2 r503-inner-8080 sent-by-upstream
     10 r503-mixed-8080 sent-by-upstream
      1 r503-no-such-service-8080 generated-by-nginx
      1 r503-notready-8080 generated-by-nginx
      4 r503-scaled-8080 generated-by-nginx
      7 shop-api-8080 generated-by-nginx
      2 shop-api-8080 sent-by-upstream

r503-backend-8080 generated-by-nginx looks odd at first, because that backend was healthy throughout. Those are the request and connection limit rejections plus one denied location, and this is why the count is only step one: the next command separates them.

kubectl -n ingress-nginx logs deploy/ingress-nginx-controller --since=15m | grep -oE 'limiting (requests|connections)' | sort | uniq -c
      4 limiting connections
     75 limiting requests

(75 is larger than 52 because the log also holds the rejections from the 429 test further down this page, which are not 503s.)

How does ingress-nginx return 503 when a Service has no ready endpoints?

The lab scenario: a three-node kind cluster running the lab's shop app, with the controller routing /items to the api Service. A change moved the api's readiness probe from /healthz to /items, which pings redis on every call. redis then went away (scaled to 0, standing in for an outage). Both api pods failed readiness and left the Service, although neither crashed.

The controller's answer took 1.6 milliseconds, with no upstream in the log:

503 0.001561s

The controller logs the reason on each sync:

kubectl -n ingress-nginx logs deploy/ingress-nginx-controller --tail=2000 | grep 'shop/api' | tail -2
W1105 23:09:26.985104      14 controller.go:1241] Service "shop/api" does not have any active Endpoint.
W1105 23:09:30.001075      14 controller.go:1241] Service "shop/api" does not have any active Endpoint.

Mechanically, the controller's Lua balancer finds no usable balancer for the backend during the rewrite phase and exits with HTTP_SERVICE_UNAVAILABLE, so nothing connects anywhere. That is why this 503 exists at all. In the same seconds, the stock nginx in the lab's frontend pods was proxying to the same Service through its ClusterIP and got a different answer:

2026-11-05T23:09:24Z GET /api/items -> 502
2026-11-05T23:09:26Z GET /api/items -> 502
2026-11-05T23:09:28Z GET /api/items -> 502
2026-11-05T23:09:30Z GET /api/items -> 502
[pod/frontend-76d98597b9-6jn99/nginx] 2026/11/05 23:09:26 [error] 30#30: *66 connect() failed (111: Connection refused) while connecting to upstream, client: 10.244.1.17, server: , request: "GET /api/items HTTP/1.1", upstream: "http://10.96.188.125:8080/items", host: "frontend"

(trimmed: one error line from the frontend pods' log.)

One fault, two status codes. ingress-nginx sends to pod IPs from its own endpoint list, finds an empty list and answers 503. A proxy pointed at the ClusterIP connects, is refused, and answers 502. If your 503 from the edge arrives with 502s from inside the cluster, suspect one empty Service, not two problems.

How do you check for ready endpoints?

This is a trap in the output most people read first. Both pods were NotReady, and the default table still listed both addresses:

kubectl -n shop get endpointslices -l kubernetes.io/service-name=api
NAME        ADDRESSTYPE   PORTS   ENDPOINTS                 AGE
api-gpgw9   IPv4          8080    10.244.1.20,10.244.2.13   91s

The ENDPOINTS column shows addresses, not readiness. Ask for the condition:

kubectl -n shop get endpointslices -l kubernetes.io/service-name=api -o jsonpath='{range .items[*].endpoints[*]}{.addresses[0]} ready={.conditions.ready}{"\n"}{end}'
10.244.1.20 ready=false
10.244.2.13 ready=false

The older kubectl get endpoints does leave out NotReady addresses, but it is deprecated, and with client v1.37.2 the column was blank:

Warning: v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice
NAME   ENDPOINTS   AGE
api                91s

Then ask why the pods are NotReady:

kubectl -n shop get events --field-selector reason=Unhealthy --sort-by=.lastTimestamp | tail -3
82s         Warning   Unhealthy   pod/api-db478d6c9-kh4d7         Readiness probe failed: Get "http://10.244.2.13:8080/items": dial tcp 10.244.2.13:8080: connect: connection refused
2s          Warning   Unhealthy   pod/api-db478d6c9-gjc85         Readiness probe failed: HTTP probe failed with statuscode: 503
1s          Warning   Unhealthy   pod/api-db478d6c9-kh4d7         Readiness probe failed: HTTP probe failed with statuscode: 503

The first line is from startup; the last two are the fault. Calling a pod directly shows it alive, with its dependency down:

kubectl -n r503 exec curl -- curl -si --max-time 5 http://10.244.1.20:8080/items
HTTP/1.0 503 Service Unavailable
Server: BaseHTTP/0.6 Python/3.12.16
Date: Thu, 05 Nov 2026 23:09:32 GMT
Content-Type: application/json
Content-Length: 32

{"error": "backend unavailable"}

So the pod's own 503 is what got it removed, and the client then received a different 503 from a different layer.

What else gives the same 503 on ingress-nginx?

Each row is one Ingress in the same controller, one request each:

FaultClient gotUpstream name in the logController log
Deployment scaled to 0503r503-scaled-8080Service "r503/scaled" does not have any active Endpoint.
Selector matches no pods503r503-badselector-8080Service "r503/badselector" does not have any active Endpoint.
Pod Running, readiness never passes503r503-notready-8080Service "r503/notready" does not have any active Endpoint.
Ingress names a Service that does not exist503r503-no-such-service-8080Error obtaining Endpoints for Service "r503/no-such-service": no object matching key "r503/no-such-service" in local store
Ingress names a port the Service lacks (9999)503r503-backend-9999No line naming the port
auth-secret names a missing Secret503r503-backend-8080"error reading Ingress annotation" err="unexpected error reading secret r503/no-such-secret: ...
No endpoints, service-upstream: "true"502 after 3 triesr503-shared-8080connect() failed (111: Connection refused)
Plain Ingress sharing that Service502 after 3 triesr503-shared-8080Same
No endpoints, default-backend: backend200 from the other Servicecustom-default-backend-r503-backendService "r503/dfltsvc" does not have any active Endpoint.

Two of these will catch you out. The missing Secret returns 503 for a healthy backend because the controller renders return 503 into that location:

# Location denied. Reason: "unexpected error reading secret r503/no-such-secret: no object matching key \"r503/no-such-secret\" in local store"
return 503;

(trimmed: leading whitespace and grep line numbers.) And the service-upstream annotation changed a second Ingress that did not set it: both share the backend name r503-shared-8080, and the plain one also went to the ClusterIP and returned 502. We found this by accident, when our first run's "plain" case came back 502. If a Service gets 502 from one Ingress where you expected 503, look for that annotation on any Ingress using the same Service and port.

For the selector case and how to repair it, use Service has no endpoints.

Why does nginx return 503 for rate limiting?

Because the default is 503. nginx's limit_req_status and limit_conn_status both default to 503, and ingress-nginx keeps that default (limit-req-status-code). A healthy backend behind a rate limit produces the same page as a dead one, and the on-call engineer goes looking for a dead one.

We set nginx.ingress.kubernetes.io/limit-rps: "2" on an Ingress in front of a healthy two-pod backend and sent 30 requests, 10 at a time:

     11 200
     19 503

The annotation rendered as burst=10 nodelay, because the default burst multiplier is 5. So a client gets 10 extra requests instantly and is then cut off, which explains why a limit of 2 per second allowed 11 in the same second. The backend pods logged 5 and 6 of those requests, 11 in all, and none of the 19 rejected ones. The error log names the limit:

2026/11/05 23:11:21 [error] 856#856: *4887 limiting requests, excess: 10.914 by zone "r503_limited_30fdd529-9a7b-4b62-b01f-31127ac1d7f5_rps", client: 10.244.1.21, server: _, request: "GET /limited/ok HTTP/1.1", host: "ingress-nginx-controller.ingress-nginx.svc"

(trimmed: one of the three lines we captured.)

The zone name starts with namespace and Ingress name, here r503_limited, which tells you whose limit fired. The access log line for a rejection has the same - - - - upstream fields as the no-endpoints one, and the backend name is the healthy one:

10.244.1.21 - - [05/Nov/2026:23:11:21 +0000] "GET /limited/ok HTTP/1.1" 503 190 "-" "curl/8.12.1" 116 0.000 [r503-backend-8080] [] - - - - 3c598f646f0b55228702d615802a1f44

(trimmed: one of three lines.)

Connection limits behave the same way. limit-connections: "2" with six slow requests at once gave 2 200 and 4 503, with limiting connections by zone "r503_connlim_... in the error log.

Why is every user rate limited at once?

The limit is keyed on the client address the controller sees. Behind a load balancer or CDN that can be one address for everybody. We sent 30 requests with a different X-Forwarded-For on each, from one pod:

     11 200
     19 503

The header was ignored, so the 30 "clients" shared one bucket. After setting use-forwarded-headers: "true" in the controller ConfigMap, the same requests all passed:

     30 200

That second result is also the danger. The header was spoofed by the test client, and it walked straight through the limit. Enable it only when a trusted proxy in front of the controller sets the header, and a direct client cannot reach the controller. The limit is also per controller replica, per the docs, so the real ceiling rises with replica count; we ran one replica and did not measure that.

Does nginx return 503 when all upstreams are down?

Not in our tests, although some guides say it does. On stock nginx 1.27.5, every way we took the upstreams away gave 502:

Config (stock nginx)Client gotError log$upstream_status
Upstream port closed502connect() failed (111: Connection refused)502
Only server marked down502no live upstreams while connecting to upstream502
max_conns=1, three requests at onceone 200, two 502no live upstreams while connecting to upstream502
Two servers both failing, second request, inside fail_timeout502no live upstreams while connecting to upstream503, 502
limit_req, 12 at onceone 200, eleven 503limiting requests, excess: 0.982 by zone "one"-
limit_conn, three at onceone 200, two 503limiting connections by zone "conn"-
limit_req_status 429one 200, eleven 429Not capturedNot captured
limit_req_dry_run on, 12 at oncetwelve 200limiting requests, dry run, excess: 0.976 by zone "dry"200
return 503503Nothing-
App sends 503503Nothing503
proxy_intercept_errors with error_page 503503, our bodyNothing503
Two servers both sending 503, proxy_next_upstream http_503503, first requestupstream server temporarily disabled (warn)503, 503

The nginx source agrees: no live upstreams falls through to NGX_HTTP_BAD_GATEWAY, and the only 503 in that file is for an upstream that sent one. So on stock nginx, every 503 we produced was a limit, a return, or a passed-through response. ingress-nginx's no-endpoints 503 comes from its Lua code, not from this path. Note the pair rows: the same two failing servers gave 503 on the first request and 502 on the next, because failed attempts had marked them down for fail_timeout.

The log format that produced this table adds three fields and $limit_req_status, which says REJECTED or REJECTED_DRY_RUN directly:

log_format lab '$remote_addr "$request" $status rt=$request_time us=$upstream_status ua=$upstream_addr lrs=$limit_req_status';
10.244.1.21 "GET /limit HTTP/1.1" 503 rt=0.000 us=- ua=- lrs=REJECTED
10.244.1.21 "GET /app503 HTTP/1.1" 503 rt=0.001 us=503 ua=10.96.100.99:8080 lrs=-
10.244.1.21 "GET /intercept HTTP/1.1" 503 rt=0.001 us=503 ua=10.96.100.99:8080 lrs=-

(trimmed: three lines from different requests in the same run.)

Why did retries hide an upstream's 503?

By default ingress-nginx does not retry a 503. The default is proxy-next-upstream: "error timeout". With one healthy and one failing pod behind a Service, 20 requests gave 10 200 and 10 503, a clean half.

Adding http_503 to that annotation made all 20 succeed. Clients see no problem, and one pod is still failing:

10.244.1.21 - - [05/Nov/2026:23:13:25 +0000] "GET /retry/x HTTP/1.1" 200 68 "-" "curl/8.12.1" 113 0.001 [r503-mixed-8080] [] 10.244.1.25:8080, 10.244.2.17:8080 0, 68 0.001, 0.001 503, 200 6d0b2b083936fbe8c9badfd5b8077583

(trimmed: one of the four lines we printed.)

Read the 503, 200 at the end: first pod failed, second answered. 18 of the 20 requests looked like this. That can be reasonable for a brief failure of one pod, but every request that lands on the bad pod costs a second request, and an alert on client errors will never show it. Search for commas in $upstream_status.

custom-http-errors hides a different thing. With custom-http-errors: "503" and a default-backend, the client got the error backend's body, and the access log held both hops, separated by a colon:

10.244.1.21 - - [05/Nov/2026:23:13:20 +0000] "GET /masked/fail503 HTTP/1.1" 503 81 "-" "curl/8.12.1" 120 0.001 [custom-default-backend-r503-errors] [] 10.244.1.23:8080 : 10.244.2.16:8080 0 : 81 0.001 : 0.000 503 : 503 481c26417e73231952ec0ed8b16acb1c

If you use custom error pages, the body tells you nothing about who failed.

How much is affected, and since when?

Scope by the bracketed upstream name: the split command above groups by it. One name failing is one Service. Every name failing, with limiting requests absent, points at something shared, such as a dependency all the readiness probes call. For timing, put the first does not have any active Endpoint for a Service next to kubectl -n <ns> get events --field-selector reason=Unhealthy and kubectl -n <ns> rollout history deploy/<name>. Events expire, one hour by default (--event-ttl), so capture them early. Rate limits have a different shape: 503s appear per client address during bursts, while the same path succeeds for others.

How do you fix a 503 from nginx?

Fix the cause the log named. Do not start by restarting anything: in the lab, both api pods had 0 restarts and were correct to report NotReady, and this app's startup code gives up and exits when redis is down, so new pods would not have helped.

No ready endpoints. Restore the failing dependency, then remove the coupling. Pods became ready again without a restart, and the controller returned 200 four seconds after redis was Available:

kubectl -n shop scale deploy/redis --replicas=1
ingress returned 200 4s after redis was Available

Then point readiness at a path the pod itself controls:

kubectl -n shop patch deploy api --type=json -p '[{"op":"replace","path":"/spec/template/spec/containers/0/readinessProbe/httpGet/path","value":"/healthz"}]'

Risk: a rolling restart, and do it only when the dependency is back, since new pods of this app exit if redis is down at startup. Rollback: kubectl -n shop rollout undo deploy/api.

This does not make the outage go away. We took redis down again with the shallow probe, and the pods stayed Ready:

HTTP/1.1 503 Service Unavailable
Date: Thu, 05 Nov 2026 23:10:05 GMT
Content-Type: application/json
Content-Length: 32
Connection: keep-alive

{"error": "backend unavailable"}

Users still got a 503, and there is a real tradeoff: a deep readiness probe does protect you when only some pods have lost a dependency, because traffic moves to the others. But with a shared dependency every pod fails at once, and the app loses its chance to answer with its own error, a cached result or a partial page. What you gain with the shallow probe is an accurate 503: the app's JSON, the Retry-After it chooses to send, $upstream_status set, and the app's log saying redis error. Also, the 502s from the stock nginx in the frontend pods became 503s, so the two paths stopped disagreeing.

Rate limit. First decide whether the limit is right. If the client key is wrong, fix that (see above). Then raise it on the Ingress, and exempt internal callers if they are the ones being hit:

kubectl -n r503 annotate ingress limited nginx.ingress.kubernetes.io/limit-whitelist=10.244.1.21/32 --overwrite

With that, the same burst gave 30 200. Risk: the listed range has no limit at all, so keep it narrow. Rollback: kubectl -n r503 annotate ingress limited nginx.ingress.kubernetes.io/limit-whitelist-.

Then make the next rejection honest. Return 429, in the controller ConfigMap:

kubectl -n ingress-nginx patch configmap ingress-nginx-controller --type=merge -p '{"data":{"limit-req-status-code":"429"}}'
     11 200
     19 429

This key covers limit_req only. Connection limits have their own limit-conn-status-code, also 503 by default, which we did not test. Risk: the rendered config has one limit_req_status, so this applies to every Ingress on the controller, and any client that retries on 503 but not on 429 changes behaviour. Rollback: remove the key with kubectl -n ingress-nginx patch configmap ingress-nginx-controller --type=json -p '[{"op":"remove","path":"/data/limit-req-status-code"}]'. On stock nginx, set limit_req_status 429;, which gave eleven 429s in our test, and limit_conn_status 429;, which we did not test. Before you tighten any limit on stock nginx, run it with limit_req_dry_run on: all 12 requests passed, and the log recorded what would have been rejected.

Upstream's own 503. nginx is not the problem. Follow the app's log. Pass Retry-After through (nginx did, unchanged) so clients back off.

Denied location. Create the Secret or correct the annotation. We did not test the repair.

How do you verify the fix?

Pass condition: 10 requests through the controller all return 200, $upstream_status shows a pod address and 200, the client's own log shows 200s, and no new does not have any active Endpoint line appears for that Service for ten minutes. In the lab:

     10 200
2026-11-05T23:10:38Z GET /api/items -> 200
2026-11-05T23:10:40Z GET /api/items -> 200
2026-11-05T23:10:42Z GET /api/items -> 200
2026-11-05T23:10:44Z GET /api/items -> 200
2026-11-05T23:10:46Z GET /api/items -> 200

The controller's view of the backend should list addresses again. In the fault state, the endpoints key was missing from this output entirely:

kubectl -n ingress-nginx exec deploy/ingress-nginx-controller -- /dbg backends get shop-api-8080 | grep -A4 '"endpoints"'
  "endpoints": [
    {
      "address": "10.244.2.20",
      "port": "8080"
    },

How do you prevent it?

Alert on 503s per Ingress, and separate limit rejections from outages. Return 429 for both kinds of limit, so 503 on the edge means something else. With ingress-nginx's Prometheus metrics (the 504 page covers the labels and caveats), the usual start is:

sum by (namespace, ingress) (rate(nginx_ingress_controller_requests{status="503"}[5m]))

That metric cannot tell the controller's 503 from the app's. We did not run a live Prometheus in this lab, so this query is untested.

Guardrail: keep shared dependencies out of readiness. In review, reject a readiness path that calls a database, cache or other service used by every replica.

Test. The scenario's check.sh is a small version: it passes only when a request through the controller gets 503, both pods are Running but not Ready, and the controller logged the missing endpoint. Run the equivalent in a staging cluster by stopping a dependency and confirming what users see.

Log format. On stock nginx add $upstream_status, $upstream_addr and $limit_req_status now. You cannot add them after the incident.

Is ingress-nginx retired, and what still applies after you migrate?

Yes. The Kubernetes project announced the retirement in November 2025, and maintenance ended in March 2026, with "no further releases, no bugfixes, and no updates to resolve any security vulnerabilities". The GitHub repository is archived. v1.15.1, tested here, is the last controller release. Existing installs keep working and images remain available, which is how we installed it for this page. The advisory for CVE-2026-116472 (posted 2026-11-05, rated 2.7, low) shows what that means in practice: "Kubernetes will not be issuing a fix for this CVE, because ingress-nginx maintenance ended in March 2026." The Steering and Security Response Committees' statement says staying on it "leaves you and your users vulnerable to attack", and that none of the alternatives are drop-in replacements.

Check whether you run it, with cluster admin permissions:

kubectl get pods --all-namespaces --selector app.kubernetes.io/name=ingress-nginx

The Ingress API itself is not going away: the docs say it is frozen and that the project has "no plans to remove" it, and they recommend Gateway API. Note that ingress-nginx and F5's NGINX Ingress Controller are separate projects; only the first is retired. ingress2gateway converts manifests and warns about what it could not translate.

We ran the same faults on what people migrate to, except on F5's controller, where we measured only the rate limit. The status code you know does not all carry over:

ControllerNo ready endpointsService missingRate limit defaultUpstream's 503Who sent it?
ingress-nginx v1.15.1503, nginx page503503Passed through$upstream_status in the default log
NGINX Gateway Fabric 2.8.1503, same nginx page text500503 (RateLimitPolicy)Passed throughDefault access log has no upstream fields; Server: nginx on everything
Envoy Gateway v1.9.3503, empty body500429Passed through, with the app's server headerresponse_code_details: direct_response or via_upstream, and upstream_host
Traefik v3.7.17 (ingress-nginx annotation provider, same Ingress objects)503, no available server503429 from limit-rpsPassed through, with the app's Server headerAccess log's server URL is "-" when no pod was used
F5 NGINX Ingress Controller 5.7.1Not measuredNot measured429 (nginx.org/limit-req-rate)Not measuredNot measured

What still applied on all four controllers where we measured it: a 503 can come from the proxy or the app, and "was an upstream contacted?" is the question that sorts them. The readiness coupling in this scenario is a Kubernetes problem and moves with you unchanged, as does the empty Service. What does not carry over: the strings. Service "ns/name" does not have any active Endpoint, /dbg and the upstreaminfo log fields are ingress-nginx's. Alerts and runbooks that match on them go quiet after a migration. Two more surprises to plan for: a mistyped Service name turns from a 503 into a 500 on both Gateway API controllers, and NGINX Gateway Fabric's rate limit keeps the 503 default (its docs describe rejectCode to change it), so a limit there still looks exactly like a dead backend. Envoy Gateway is better here than nginx: it returns 429 for limits and names local_rate_limited in the log, though its empty 503 body gives a user nothing to report.

Common mistakes

  • Assuming the backend is down. A healthy backend behind limit-rps gave the same bytes as an empty Service.
  • Reading the ENDPOINTS column as ready. It listed two NotReady pods.
  • Trusting the Server header. nginx removes the upstream's by default.
  • Trusting the footer. An nginx behind the controller with server_tokens off matches the controller exactly.
  • Restarting the controller or the pods. Neither changes an empty endpoint list, and this app's startup code exits when redis is down.
  • Applying the 502 fix list to a 503. On ingress-nginx there is no connect() failed line to read, because no connection was attempted.
  • Turning on use-forwarded-headers to fix a shared limit, with no trusted proxy. Any client can then pick its own key.
  • Adding http_503 retries to quiet an alert. The failing pod stays failing and keeps receiving requests first.

What we saw in the lab

Scenario 26 is new in the Aurora lab as of 2026-11-05. ./lab.sh selftest 26-ingress-503-no-ready-endpoints passed in GitHub Actions (selftest: 1 passed, 0 failed): the check requires a 503 through the controller, both api pods Running and not Ready, and the controller's log line. The final transcript is workflow run 42126574992.

What surprised us:

  • Three different producers returned byte-identical responses, Date line aside: no endpoints, a rate limit, and an nginx behind the controller.
  • service-upstream leaked to another Ingress through the shared backend. It spoiled our first run, whose no-endpoint and rate limit comparisons had to be redone.
  • "All upstreams down" never gave a 503 on stock nginx, in any form we tried, unless the upstreams were sending the 503 themselves.
  • The two proxies disagreed about one fault: 503 at the controller and 502 at the frontend, in the same seconds.

Limits of this work: one controller replica, one kind cluster on a GitHub runner, plain HTTP inside the cluster except for the HTTP/2 check, no real load balancer in front, and proxy_pass only on stock nginx, so no FastCGI or PHP-FPM. The F5 controller run measured only the rate limit. Our nic-app Ingress shared a host with nic-limited and returned 404 on every path, which fits F5's host collision rule of one winning resource per host, though we did not capture the rejection event. Its other rows are empty rather than guessed. Each failure in the tables above was run once in the final run, which is enough to show a code path, not a rate.

The Aurora, HolmesGPT and K8sGPT investigations have not been run on this scenario. When Aurora's is, the trace and the grade will go into the lab folder and onto this page, including any wrong turns.

How Aurora handles this

Aurora receives the alert and investigates with read-only kubectl under its default observability_only command policy, choosing the commands itself. For a 503 it would need the same evidence as this page: the controller's access and error logs, endpoint readiness, pod events and the recent change. Two limits we already know: the policy blocked exec in three of our graded lab runs (16 r1, 19 r1 and 19 r2), and it denies the whole rollout verb, so the /dbg check and rollout history on this page may not be open to it. It records every tool call and its output, cites them in the report, and lists suggested fixes separately; mutating commands are blocked by default, so it proposes the change rather than applying it. Its results on the other lab scenarios are on the benchmark.

Related: 502 Bad Gateway in nginx and Kubernetes, 504 Gateway Timeout in nginx, Service has no endpoints, Service targetPort mismatch, liveness probe failed, paste your kubectl output into the diagnoser, and the root cause analysis guide for SREs.

Sources and verification

Questions

Other runbooks