March 2020
Intermediate to advanced
626 pages
14h 45m
English
To define a quota rule, follow these steps:
# Script : 05-create-quota-rule.yamlapiVersion: config.istio.io/v1alpha2kind: rulemetadata: name: quotaspec: # quota only applies if you are not logged in. match: match(request.headers["cookie"], "session=*") == false actions: - handler: quotahandler instances: - requestcountquota
$ kubectl -n istio-system apply -f 05-create-quota-rule.yamlrule.config.istio.io/quota created
The rule quota created in the preceding, tells Istio Mixer to invoke the memquota handler and pass the quota instance object, requestcountquota ...
Read now
Unlock full access