From 94441ef933d17aa9a924de68b310e346d768e4dd Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 17 Apr 2018 11:47:44 +0300 Subject: [PATCH] Istio - using same hosts has no effect --- deploy/istio-v1alpha3/podinfo-gateway.yaml | 2 ++ deploy/istio/ga-routes.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/deploy/istio-v1alpha3/podinfo-gateway.yaml b/deploy/istio-v1alpha3/podinfo-gateway.yaml index c1e3daa..e0b31c5 100644 --- a/deploy/istio-v1alpha3/podinfo-gateway.yaml +++ b/deploy/istio-v1alpha3/podinfo-gateway.yaml @@ -14,6 +14,7 @@ spec: protocol: HTTP hosts: - podinfo.co.uk + - podinfo.default.svc.cluster.local --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService @@ -22,6 +23,7 @@ metadata: namespace: default spec: hosts: + - podinfo.co.uk - podinfo.default.svc.cluster.local gateways: - podinfo-gateway diff --git a/deploy/istio/ga-routes.yaml b/deploy/istio/ga-routes.yaml index 990531f..2aa5fc5 100644 --- a/deploy/istio/ga-routes.yaml +++ b/deploy/istio/ga-routes.yaml @@ -29,3 +29,4 @@ spec: route: - labels: release: ga + weight: 100