Skip to main content
Version: Next

ApisixGlobalRule

ApisixGlobalRule is a Kubernetes CRD resource used to create an APISIX global-rule object, which can apply the plugin to all requests.

Example#

Enable the limit-count plugin on the APISIX, which can limit all requests.

apiVersion: apisix.apache.org/v2
kind: ApisixGlobalRule
metadata:
name: global
spec:
plugins:
- name: limit-count
enable: true
config:
time_window: 60
policy: local
count: 2
key: remote_addr
rejected_code: 503