Enable Istio on IEC type2
[iec.git] / src / use_cases / service_mesh / bookinfo / config / virtual-service-reviews-80-20.yaml
diff --git a/src/use_cases/service_mesh/bookinfo/config/virtual-service-reviews-80-20.yaml b/src/use_cases/service_mesh/bookinfo/config/virtual-service-reviews-80-20.yaml
new file mode 100644 (file)
index 0000000..52e365c
--- /dev/null
@@ -0,0 +1,18 @@
+# yamllint disable rule:hyphens rule:commas rule:indentation rule:line-length
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
+metadata:
+  name: reviews
+spec:
+  hosts:
+    - reviews
+  http:
+  - route:
+    - destination:
+        host: reviews
+        subset: v1
+      weight: 80
+    - destination:
+        host: reviews
+        subset: v2
+      weight: 20