mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 03:52:44 +00:00
deploy aangepast voor istio gateway testen
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
config.json
|
||||
manifests/triggers/webhook-secret.yaml
|
||||
venv
|
||||
venv/**
|
||||
|
||||
|
72
deploy.yaml
72
deploy.yaml
@@ -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
|
||||
|
Reference in New Issue
Block a user