mirror of https://github.com/istio/api.git
Add name field to a rule (#116)
* Add name field to a rule This is necessary to make a route rule a self-contained object. * updated examples
This commit is contained in:
parent
9c20ee79d0
commit
5c9f6311c8
|
|
@ -66,12 +66,17 @@ package istio.proxy.v1.config;
|
|||
// "reviews" service to version "v1" can be specified as follows:
|
||||
//
|
||||
// destination: reviews.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// route:
|
||||
// - tags:
|
||||
// version: v1
|
||||
// weight: 100
|
||||
//
|
||||
message RouteRule {
|
||||
// REQUIRED: Route rules have unique names to allow multiple rules
|
||||
// for the same destination, e.g. "my-rule".
|
||||
string name = 11;
|
||||
|
||||
// REQUIRED: Destination uniquely identifies the destination associated
|
||||
// with this routing rule. This field is applicable for hostname-based
|
||||
// resolution for HTTP traffic as well as IP-based resolution for
|
||||
|
|
@ -130,6 +135,7 @@ message RouteRule {
|
|||
// contains a "cookie" with value "user=jason",
|
||||
//
|
||||
// destination: ratings.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// match:
|
||||
// source: reviews.default.svc.cluster.local
|
||||
// sourceTags:
|
||||
|
|
@ -181,6 +187,7 @@ message MatchCondition {
|
|||
// "v1".
|
||||
//
|
||||
// destination: reviews.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// route:
|
||||
// - tags:
|
||||
// version: v2
|
||||
|
|
@ -228,6 +235,7 @@ message L4MatchAttributes {
|
|||
// /v1/bookRatings provided by the bookratings service.
|
||||
//
|
||||
// destination: ratings.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// match:
|
||||
// httpHeaders:
|
||||
// uri:
|
||||
|
|
@ -254,6 +262,7 @@ message HTTPRedirect {
|
|||
// ratings service before making the actual API call.
|
||||
//
|
||||
// destination: ratings.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// match:
|
||||
// httpHeaders:
|
||||
// uri:
|
||||
|
|
@ -290,6 +299,7 @@ message StringMatch {
|
|||
// 10 second timeout for calls to the ratings:v1 service
|
||||
//
|
||||
// destination: ratings.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// route:
|
||||
// - tags:
|
||||
// version: v1
|
||||
|
|
@ -320,6 +330,7 @@ message HTTPTimeout {
|
|||
// calling ratings:v1 service, with a 2s timeout per retry attempt.
|
||||
//
|
||||
// destination: ratings.default.svc.cluster.local
|
||||
// name: my-rule
|
||||
// route:
|
||||
// - tags:
|
||||
// version: v1
|
||||
|
|
|
|||
Loading…
Reference in New Issue