From 7285ad57540fa6a3d5caa21d944b41900a303b5a Mon Sep 17 00:00:00 2001 From: Michelle Noorali Date: Wed, 28 Aug 2019 16:34:44 -0400 Subject: [PATCH] make weights simpler --- traffic-split.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/traffic-split.md b/traffic-split.md index 1573f30..4139d42 100644 --- a/traffic-split.md +++ b/traffic-split.md @@ -27,19 +27,16 @@ different selector and type. apiVersion: split.smi-spec.io/v1alpha1 kind: TrafficSplit metadata: - name: my-weights + name: my-trafficsplit spec: # The root service that clients use to connect to the destination application. - service: numbers + service: my-website # Services inside the namespace with their own selectors, endpoints and configuration. backends: - - service: one - # Identical to resources, 1 = 1000m - weight: 10m - - service: two - weight: 100m - - service: three - weight: 1500m + - service: my-website-v1 + weight: 50 + - service: my-website-v2 + weight: 50 ``` ### Ports @@ -183,7 +180,7 @@ In order to update an application, the user will perform the following actions: - service: foobar-v1 weight: 1 - service: foobar-v2 - weight: 0m + weight: 0 ``` **Note**: The `TrafficSplit` resource above refers to the service