March 2020
Intermediate to advanced
626 pages
14h 45m
English
Define an instance of quota with the name requestcountquota using a template, quota. The source for enabling this quota will be applicable for IP address defined in x-forwarded-for. The destination dimension is for microservices that have apps labels or the service's name.
The label version assigned to the microservice determines the destination version:
# Script : 01-create-quota-instance.yamlapiVersion: config.istio.io/v1alpha2kind: instancemetadata: name: requestcountquotaspec: compiledTemplate: quota params: dimensions: source: request.headers["x-forwarded-for"] | "unknown" destination: destination.labels["app"] | destination.service.name ...
Read now
Unlock full access