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