diff --git a/Frontend/uiDeployment.yaml b/Frontend/uiDeployment.yaml index 3fbb32a..ccfc8b6 100644 --- a/Frontend/uiDeployment.yaml +++ b/Frontend/uiDeployment.yaml @@ -28,6 +28,7 @@ spec: metadata: labels: app: ui + version: original spec: containers: - image: devengers/ui @@ -51,6 +52,7 @@ spec: metadata: labels: app: ui + version: canary spec: containers: - image: devengers/ui_1.0 diff --git a/istiofiles/istio_rules_canary.yaml b/istiofiles/istio_rules_canary.yaml new file mode 100644 index 0000000..68bf4d8 --- /dev/null +++ b/istiofiles/istio_rules_canary.yaml @@ -0,0 +1,33 @@ +kind: VirtualService +apiVersion: networking.istio.io/v1alpha3 +metadata: + name: ui-virtualservice + namespace: default +spec: + hosts: + - ui + http: + - route: + - destination: + host: ui + subset: original + weight: 80 + -destination: + host: ui + subset: canary + weight: 20 +--- +kind: DestinationRule +apiVersion: networking.istio.io/v1alpha3 +metadata: + name: ui-destinationrule + namespace: default +spec: + host: ui + subsets: + - labels: + version: original + name: original + - labels: + version: canary + name: canary \ No newline at end of file