Istio tweaks

This commit is contained in:
Steve Waterworth
2019-07-09 17:09:53 +01:00
parent 43a7d19b06
commit 2cfdb6e701
3 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ spec:
hosts: hosts:
- "*" - "*"
--- ---
apiVersion: networking.istio.io/v1aplha3 apiVersion: networking.istio.io/v1alpha3
kind: VirtualService kind: VirtualService
metadata: metadata:
name: robotshop name: robotshop
@@ -24,11 +24,9 @@ spec:
gateways: gateways:
- robotshop-gateway - robotshop-gateway
http: http:
- match: # default route
- uri: - route:
prefix: /
route:
- destination: - destination:
host: web.robot-shop.svc.cluster.local host: web.robot-shop.svc.cluster.local
port: port:
number: 8080 number: 8080

View File

@@ -13,6 +13,8 @@ spec:
metadata: metadata:
labels: labels:
service: mysql service: mysql
annotations:
sidecar.istio.io/inject: "false"
spec: spec:
containers: containers:
- name: mysql - name: mysql