ACK provides Ingress diagnostics to help troubleshoot common Ingress issues. This topic describes the diagnostic check items and corresponding fix solutions for Ingress resources, add-ons, and Server Load Balancer (SLB).
Important
Ingress diagnostics runs a data collection program on each node, collecting system version, load status, Docker status, kubelet status, and key system log error entries. No business data or sensitive information is collected.
Note
Available diagnostic items depend on your cluster configuration. The items on the diagnostic page are authoritative.
Diagnostic categories
| Category | What it checks |
|---|---|
| Ingress | Availability of Ingress resources |
| Addon | Ingress controller startup parameters, associated Services, and Ingress pods |
| SLB | SLB instance status, including maximum connections, QPS, and health status |
Ingress
| Diagnostic item | Description | Resolution |
|---|---|---|
| Ingress check | Checks whether the specified Ingress exists. | Verify an Ingress rule exists for the URL. If correct, inspect the rules — for example, whether a regex is specified as the path or the use-regex annotation is set. |
| base-url-scheme check | Detects use of the nginx.ingress.kubernetes.io/base-url-scheme annotation, which was deprecated in Ingress controller 0.22.0. |
Check the Ingress controller version, then remove this annotation or replace it with a supported one. |
| grpc-backend check | Detects use of the nginx.ingress.kubernetes.io/grpc-backend annotation, which was deprecated in Ingress controller 0.21.0. |
Check the Ingress controller version, then remove this annotation or replace it with a supported one. |
| mirror-uri check | Detects use of the nginx.ingress.kubernetes.io/mirror-uri annotation, which was deprecated in Ingress controller 0.24.0. |
Check the Ingress controller version, then remove this annotation or replace it with a supported one. |
| secure-backends check | Detects use of the nginx.ingress.kubernetes.io/secure-backends annotation, which was deprecated in Ingress controller 0.21.0. |
Check the Ingress controller version, then remove this annotation or replace it with a supported one. |
| session-cookie-hash check | Detects use of the nginx.ingress.kubernetes.io/session-cookie-hash annotation, which was deprecated in Ingress controller 0.24.0. |
Check the Ingress controller version, then remove this annotation or replace it with a supported one. |
| nginx.com/nginx.org check | Detects nginx.com/nginx.org-prefixed annotations. These are specific to the commercial NGINX Ingress controller and not recognized by the open-source version. |
Replace with annotations supported by the open-source NGINX Ingress controller. See NGINX Ingress management or the official documentation. |
| Status of Canary | Checks whether nginx.ingress.kubernetes.io/canary: "true" is set. Without this annotation, the Canary feature does not take effect. |
Add the nginx.ingress.kubernetes.io/canary: "true" annotation to the Ingress rules to enable canary routing. |
Addon
| Diagnostic item | Description | Resolution |
|---|---|---|
| Percentage of Ingress pods in the Ready state | Checks the percentage of Ingress pods in Ready state. Below 100% may indicate an issue. | Check the error logs to identify and fix the faulty pods. See NGINX Ingress controller troubleshooting. |
| Ingress IP address check | Checks whether the Ingress controller has assigned an IP address to the Ingress. | If no IP is assigned, verify the Ingress controller is referenced in the IngressClass and running correctly. Fix issues based on the diagnostic result. |
| Leader pod check | Checks whether a leader pod has been elected. No leader pod may indicate insufficient startup time or misconfigured Ingress controller permissions. | Check Ingress pod error logs and fix reported errors. See NGINX Ingress controller troubleshooting. |
| Incorrect NGINX Ingress annotations | Checks for nginx.com/nginx.org-prefixed annotations. The open-source controller only recognizes nginx.ingress.kubernetes.io-prefixed annotations. Using other prefixes may invalidate your configuration. |
Replace with annotations supported by the open-source controller. See Annotations. |
| Use of capture groups together with rewrite-target in NGINX Ingresses | Checks whether rewrite-target is used with capture groups. In Ingress controller 0.22.0+, capture groups must be explicitly specified with rewrite-target. Without them, traffic forwarding errors occur. |
Configure the Ingress correctly. See Advanced NGINX Ingress configurations. |
| NGINX Ingress canary rules | Checks whether more than two Services are specified in service-match or service-weight. Each field distributes traffic between exactly two Services. Additional Services are ignored, causing unexpected routing. |
Limit service-match or service-weight to no more than two Services. |
| Ingress name | Displays the names of matching Ingress rules. | None. |
| Pod error logs | Checks whether Ingress controller pods are generating error logs, indicating the controller may not be running as expected. | Review error logs to identify and fix the issue. See NGINX Ingress controller troubleshooting. |
| Use of capture groups in the paths of rewrite-target | Checks whether capture groups are specified in nginx.ingress.kubernetes.io/rewrite-target. In Ingress controller 0.22.0+, capture groups are required; without them, path errors may occur. |
Configure the Ingress correctly. See Configure routing rules to redirect traffic from specific URLs. |
| Multiple targets in service-* | Checks whether more than two Services are specified in service-match or service-weight. Traffic can only be distributed between two Services at a time. |
Limit service-weight or service-match to two Services. See Use the NGINX Ingress controller to implement canary releases and blue-green deployments. |
| Ingress Service check | Checks whether the Service in the Ingress controller startup parameters exists. A missing Service prevents the controller from starting. | Locate the missing Service in the Deployment startup parameters and restore it. See High-risk operations related to networks and SLB instances. |
| Ingress Service endpoint check | Checks whether the Ingress-associated Service has endpoints. Without endpoints, the SLB cannot route traffic to the controller. | Verify that the label selector on the Service matches the correct pods. |
| Ingress Service events | Checks whether the Ingress-associated Service has Warning or Error events, which often indicate SLB configuration errors. | Review Service events to identify and fix the cause. See Service errors and solutions. |
| Ingress Service external traffic policy | Checks the Service external traffic policy. Default is Local; Cluster mode may not preserve client IPs, causing incorrect health check results. | Use Local mode unless your workload requires Cluster mode or needs SLB IP access from within the cluster. |
| Ingress Service external IP address | Checks whether the cloud controller manager assigned an external IP to the Service. Without one, the Ingress cannot receive Internet traffic. | Check the Service status, cloud controller manager, and SLB quota. Most issues surface as Service events. |
| Ingress Service type (LoadBalancer) | Checks whether the Service in the Ingress controller startup parameters is of type LoadBalancer. A different type makes the controller inaccessible from the Internet. | Change the Service type to LoadBalancer unless Internet access is not required. |
| --force-namespace-isolation check | Detects use of the --force-namespace-isolation startup parameter, which was deprecated in Ingress controller 0.24.0. |
Check the Ingress controller version, then remove this startup parameter. |
| --sort-backends check | Detects use of the --sort-backends startup parameter, which was deprecated in Ingress controller 0.22.0. |
Check the Ingress controller version, then remove this startup parameter. |
SLB
| Diagnostic item | Description | Resolution |
|---|---|---|
| SLB instance | Checks whether the SLB instance used by the Ingress controller exists. | If missing, check associated Service events and the SLB console. If accidentally deleted, recreate the Service to provision a new instance. See What do I do if I accidentally delete an SLB instance? |
| Ingress controller SLB instance backend server health | Checks the health status of the SLB backend servers. | If unhealthy, review Service events and check whether controller pods are overloaded. See NGINX Ingress controller troubleshooting. |
| SLB ID | Displays the ID of the SLB instance. | None. |
| Ingress controller SLB instance connections | Checks whether SLB connections over the past three days exceeded 80% of the limit. Reaching the limit blocks new client connections. | If at the limit, upgrade the SLB instance to avoid service interruptions. See Use an existing SLB instance. |
| Ingress controller SLB instance new connection rate | Checks whether the SLB new connection rate over the past three days exceeded 80% of the limit. Reaching the limit temporarily blocks new connections. | If at the limit, upgrade the SLB instance to avoid service interruptions. See Use an existing SLB instance. |
| Ingress controller SLB instance QPS | Checks whether SLB QPS over the past three days exceeded 80% of the limit. Reaching the limit blocks client connections. | If at the limit, upgrade the SLB instance to avoid service interruptions. See Use an existing SLB instance. |
| Host and SecretName for TLS | Checks whether both Host and SecretName are specified in the Ingress TLS configuration. |
Specify both Host and SecretName. Ensure the host value matches the hostname in the certificate. |
| Ingress controller SLB health check | Checks whether the SLB instance failed health checks over the past three days. Failures indicate overloaded controller pods or SLB configuration errors. | If failures occurred, review Service events and verify the controller is not overloaded. See NGINX Ingress controller troubleshooting. |