设置 prefix_regex: true,即prefix就可以设置成正则表达式
--- apiVersion: getambassador.io/v2 kind: Mapping metadata: name: qotm spec: prefix: "/(v1|v2)/qotm/.*" prefix_regex: true service: qotm
Ambassador-09-prefix正则表达式
原文:https://www.cnblogs.com/shix0909/p/12960935.html