Check APISIX pods
Check that APISIX pods are running in Kubernetes.
kubectl get pods -n ingress-apisix
- tool
- apisix16 commands
- tags
- apisixapi-gatewayk8s
More apisix commands
-
curl http://apisix-admin:9180/apisix/admin/routes -H "X-API-KEY: $ADMIN_KEY"List all configured APISIX routes as raw JSON.
-
curl -X PUT http://apisix-admin:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"uri":"/api/*","upstream":{"nodes":{"backend:8080":1},"type":"roundrobin"}}'Create a simple route with a roundrobin upstream.
-
curl -X PATCH http://apisix-admin:9180/apisix/admin/routes/1 -H "X-API-KEY: $ADMIN_KEY" -d '{"plugins":{"limit-req":{"rate":100,"burst":50,"key":"remote_addr"}}}'Add the limit-req rate limiting plugin to an existing route.
-
curl http://apisix-admin:9180/apisix/admin/upstreams -H "X-API-KEY: $ADMIN_KEY"List all configured APISIX upstreams.
-
curl -X PUT http://apisix-admin:9180/apisix/admin/consumers/myuser -H "X-API-KEY: $ADMIN_KEY" -d '{"plugins":{"key-auth":{"key":"user-api-key"}}}'Create an APISIX consumer that logs in with an API key (key-auth).