Troubleshoot Manifest Translation and Synchronization
Troubleshooting is required if the applied behavior does not match expectations, such as routes not being created correctly, plugins not being applied, or services failing to route traffic.
When you apply a Kubernetes resource—whether a Gateway API, Ingress, or APISIX CRD—the Ingress Controller translates it into ADC YAML, which is then applied to the gateway:
This document explains how to inspect the translated ADC configurations in memory and check the configurations actually applied to the gateway.
Inspect Translated ADC Configurations
Ingress Controller provides a browser-accessible debug API that displays the translated ADC configurations, derived from the last applied Gateway API, Ingress, and APISIX CRD resources, in JSON format. It helps inspect the in-memory state before the configurations are synchronized with the gateway.
To use the debug API, configure these values in the ingress controller's configuration file:
enable_server: true # Enable the debug API server
server_addr: "127.0.0.1:9092" # Server address
The API7 chart exposes these fields as config.enableServer and config.serverAddr. Update the Helm values and upgrade the release. The APISIX controller chart does not expose them; modify the ConfigMap and restart the controller Deployment.
Once the debug API is enabled, you can access it by forwarding the controller pod’s port to your local machine:
kubectl port-forward pod/<ingress-controller-pod-name> 9092:9092 &
You can now access the debug API in browser at 127.0.0.1:9092/debug and inspect the translated resources by resource type, such as routes and services.
Inspect Synchronized Gateway Configurations
If you are using API7 Enterprise, you can view synchronized resources directly on the API7 Dashboard. Resources created by the Ingress Controller are read-only and cannot be edited from the Dashboard.
If you are using APISIX, you can inspect the synchronized resources using the Admin API.
If you are using the APISIX local evaluation from the setup guide, export its generated admin-role key:
export ADMIN_API_KEY="$(kubectl get secret apisix-admin-credentials \
--namespace aic \
-o jsonpath='{.data.admin}' | base64 --decode)"
For another APISIX deployment, export one of its valid admin-role keys as ADMIN_API_KEY. Then forward the Admin API service port:
kubectl port-forward service/apisix-admin 9180:9180 &
If you have deployed APISIX in standalone mode, you can send a request to /apisix/admin/configs to view all configurations synchronized to the gateway:
curl "http://127.0.0.1:9180/apisix/admin/configs" -H "X-API-KEY: ${ADMIN_API_KEY}"
If you have deployed APISIX with etcd, you can send a request to /apisix/admin/<resource> to view the synchronized configurations of specific resources. For instance, to view the route configuration:
curl "http://127.0.0.1:9180/apisix/admin/routes" -H "X-API-KEY: ${ADMIN_API_KEY}"
For reference, see Admin API.
Resolve Competing GatewayProxy Owners
For API7 Ingress Controller, a GatewayProxy owns the complete desired configuration of its target gateway group. Two GatewayProxy resources targeting that group can overwrite each other's routes and services during a full synchronization. The Kubernetes resources may remain present even though their gateway configuration has disappeared.
List the connection resources across namespaces and check every controller deployment that can reach the group, including controllers in other clusters:
kubectl get gatewayproxy,gateway -A
kubectl get gatewayclass,ingressclass
For each GatewayProxy, trace its control-plane address and Admin API key to the target gateway group. Different Secret names do not prove that the keys or gateway groups differ. Inspect credentials securely; do not copy their values into tickets or logs. The admission webhook does not compare the contents of different Secrets.
To recover:
- Save the affected Kubernetes manifests and the current gateway configuration, and identify the GatewayProxy and controller that should own the group.
- Stop the automation that creates the competing resources. Move independently managed traffic to a separate gateway group, or attach its routes to the existing owner's Gateway or IngressClass.
- After moving any routes that must be retained, remove the competing GatewayProxy resources from the configuration source and the cluster. Confirm that another controller or GitOps reconciliation will not recreate them.
- Restart the intended controller deployment to rebuild its desired configuration and run a full synchronization. Removing the competing GatewayProxy alone does not restore the missing gateway resources.
- Compare the translated configuration with the synchronized gateway configuration, check controller logs, and send requests to the affected routes. Confirm that a later synchronization does not remove them again.
For deployment guidance, see Assign One Owner to Each Gateway Group.
Resolve Plugin Translation Errors
The controller rejects a plugin when its config value cannot be decoded as an object. It does not publish that plugin with an empty configuration. This prevents a malformed security plugin from appearing synchronized while enforcing no policy.
If a resource fails to synchronize after an upgrade, inspect its status and controller logs:
kubectl describe <resource-kind> <resource-name> -n <namespace>
kubectl logs deployment/<ingress-controller-deployment> -n <namespace> \
--all-containers --since=10m | grep -iE 'plugin|unmarshal|translation|sync'
Review plugin configurations in the resource and any referenced PluginConfig or ApisixPluginConfig. Each enabled plugin config must be a YAML mapping, not a scalar, list, or malformed JSON value. Correct the resource and apply it again; do not treat a missing plugin in the translated debug output as a successful partial configuration.