From 420a074091740db8bad04fc3b6085e18a6cacf37 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Tue, 3 Jul 2018 13:41:56 -0700 Subject: [PATCH] add initial istio-manifests Signed-off-by: Ahmet Alp Balkan --- .../currencyservice-egress-external.yaml | 14 +++++++++ istio-manifests/frontend-gateway.yaml | 30 +++++++++++++++++++ istio-manifests/frontend.yaml | 13 ++++++++ 3 files changed, 57 insertions(+) create mode 100644 istio-manifests/currencyservice-egress-external.yaml create mode 100644 istio-manifests/frontend-gateway.yaml create mode 100644 istio-manifests/frontend.yaml diff --git a/istio-manifests/currencyservice-egress-external.yaml b/istio-manifests/currencyservice-egress-external.yaml new file mode 100644 index 0000000..27fb56a --- /dev/null +++ b/istio-manifests/currencyservice-egress-external.yaml @@ -0,0 +1,14 @@ +apiVersion: networking.istio.io/v1alpha3 +kind: ServiceEntry +metadata: + name: currency-provider-external +spec: + hosts: + - www.ecb.europa.eu + ports: + - number: 80 + name: http + protocol: HTTP + - number: 443 + name: https + protocol: HTTPS diff --git a/istio-manifests/frontend-gateway.yaml b/istio-manifests/frontend-gateway.yaml new file mode 100644 index 0000000..e1321f1 --- /dev/null +++ b/istio-manifests/frontend-gateway.yaml @@ -0,0 +1,30 @@ +apiVersion: networking.istio.io/v1alpha3 +kind: Gateway +metadata: + name: frontend-gateway +spec: + selector: + istio: ingressgateway # use Istio default gateway implementation + servers: + - port: + number: 80 + name: http + protocol: HTTP + hosts: + - "*" +--- +apiVersion: networking.istio.io/v1alpha3 +kind: VirtualService +metadata: + name: frontend-ingress +spec: + hosts: + - "*" + gateways: + - frontend-gateway + http: + - route: + - destination: + host: frontend + port: + number: 80 diff --git a/istio-manifests/frontend.yaml b/istio-manifests/frontend.yaml new file mode 100644 index 0000000..6abf4fb --- /dev/null +++ b/istio-manifests/frontend.yaml @@ -0,0 +1,13 @@ +apiVersion: networking.istio.io/v1alpha3 +kind: VirtualService +metadata: + name: frontend +spec: + hosts: + - "frontend.default.svc.cluster.local" + http: + - route: + - destination: + host: frontend + port: + number: 80