add initial istio-manifests
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
684c6020cb
commit
420a074091
3 changed files with 57 additions and 0 deletions
14
istio-manifests/currencyservice-egress-external.yaml
Normal file
14
istio-manifests/currencyservice-egress-external.yaml
Normal file
|
@ -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
|
30
istio-manifests/frontend-gateway.yaml
Normal file
30
istio-manifests/frontend-gateway.yaml
Normal file
|
@ -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
|
13
istio-manifests/frontend.yaml
Normal file
13
istio-manifests/frontend.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue