mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-09-01 21:42: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
|
config.json
|
||||||
manifests/triggers/webhook-secret.yaml
|
manifests/triggers/webhook-secret.yaml
|
||||||
venv
|
venv
|
||||||
venv/**
|
|
||||||
|
72
deploy.yaml
72
deploy.yaml
@@ -100,23 +100,6 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 6000
|
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
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
kind: DestinationRule
|
kind: DestinationRule
|
||||||
metadata:
|
metadata:
|
||||||
@@ -136,6 +119,61 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: networking.istio.io/v1alpha3
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
kind: Gateway
|
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:
|
metadata:
|
||||||
name: server-check-gateway
|
name: server-check-gateway
|
||||||
namespace: istio-project-1
|
namespace: istio-project-1
|
||||||
|
Reference in New Issue
Block a user