deploy aangepast voor istio gateway testen

This commit is contained in:
2020-03-03 16:56:51 +01:00
parent 1eaa25acc8
commit 9338f28581
2 changed files with 56 additions and 18 deletions

View File

@@ -100,23 +100,6 @@ spec:
protocol: TCP
port: 6000
---
kind: Service
apiVersion: v1
metadata:
name: expose-server-a
namespace: istio-project-1
labels:
app: "project-1"
spec:
selector:
expose: "true"
ports:
- name: http
protocol: TCP
targetPort: 5000
port: 80
type: LoadBalancer
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
@@ -136,6 +119,61 @@ spec:
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: expose-server-gateway
namespace: istio-project-1
labels:
app: "project-1"
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: v1
kind: Service
metadata:
name: expose-server-service
namespace: istio-project-1
labels:
app: "project-1"
spec:
ports:
- name: http
port: 5000
protocol: TCP
selector:
expose: "true"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: expose-server-vservice
namespace: istio-project-1
labels:
app: "project-1"
spec:
hosts:
"*"
gateways:
- expose-server-gateway
http:
- match:
- uri:
prefix: /server-a/
route:
- destination:
port:
number: 5000
host: expose-server-service
--- # TODO fix gateway zodat we ingress gateway kunnen gebruike ipv de fuken loadbalancer.
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: server-check-gateway
namespace: istio-project-1