ApisixGlobalRule
ApisixGlobalRule
is a Kubernetes CRD resource used to create an APISIX global-rule object, which can apply the plugin to all requests.
#
ExampleEnable 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
enabled: true
config:
time_window": 60,
policy: "local",
count: 2,
key: "remote_addr",
rejected_code: 503