istio
This commit is contained in:
34
K8s/Istio/gateway.yaml
Normal file
34
K8s/Istio/gateway.yaml
Normal 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
|
@@ -12,5 +12,8 @@ spec:
|
||||
- name: "http-management"
|
||||
port: 15672
|
||||
targetPort: 15672
|
||||
- name: "tcp-epmd"
|
||||
port: 4369
|
||||
targetPort: 4369
|
||||
selector:
|
||||
service: rabbitmq
|
||||
|
Reference in New Issue
Block a user