Install Istio with mutual TLS authentication
[msb/service-mesh.git] / install / msb-istio-gateway.yaml
diff --git a/install/msb-istio-gateway.yaml b/install/msb-istio-gateway.yaml
new file mode 100644 (file)
index 0000000..a7bfcac
--- /dev/null
@@ -0,0 +1,31 @@
+apiVersion: networking.istio.io/v1alpha3
+kind: Gateway
+metadata:
+  name: msb-iag-gateway
+spec:
+  selector:
+    istio: ingressgateway # use istio default controller
+  servers:
+  - port:
+      number: 80
+      name: http
+      protocol: HTTP
+    hosts:
+    - "*"
+---
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
+metadata:
+  name: msb-iag
+spec:
+  hosts:
+  - "*"
+  gateways:
+  - msb-iag-gateway
+  http:
+  - match:
+    route:
+    - destination:
+        host: msb-iag
+        port:
+          number: 80