Skip to content

Commit

Permalink
#87 added versions in ui.yaml and added the yaml files ofr canary dep…
Browse files Browse the repository at this point in the history
…loyment.
  • Loading branch information
asimazmi committed Apr 29, 2020
1 parent 26db691 commit 7f2b210
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Frontend/uiDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
metadata:
labels:
app: ui
version: original
spec:
containers:
- image: devengers/ui
Expand All @@ -51,6 +52,7 @@ spec:
metadata:
labels:
app: ui
version: canary
spec:
containers:
- image: devengers/ui_1.0
Expand Down
33 changes: 33 additions & 0 deletions istiofiles/istio_rules_canary.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f2b210

Please sign in to comment.