This commit is contained in:
Steve Waterworth
2019-07-08 11:02:02 +01:00
parent 515c913081
commit 43a7d19b06
3 changed files with 39 additions and 0 deletions

34
K8s/Istio/gateway.yaml Normal file
View File

@@ -0,0 +1,34 @@
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: robotshop-gateway
spec:
selector:
istio: ingressgateway # default Istio controller
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1aplha3
kind: VirtualService
metadata:
name: robotshop
spec:
hosts:
- "*"
gateways:
- robotshop-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
host: web.robot-shop.svc.cluster.local
port:
number: 8080

View File

@@ -12,5 +12,8 @@ spec:
- name: "http-management"
port: 15672
targetPort: 15672
- name: "tcp-epmd"
port: 4369
targetPort: 4369
selector:
service: rabbitmq