-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathgateway.yaml
67 lines (67 loc) · 1.38 KB
/
gateway.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: prow-gateway
namespace: default
annotations:
cert-manager.io/issuer: letsencrypt-prod
cert-manager.io/issue-temporary-certificate: "true"
spec:
gatewayClassName: gke-l7-global-external-managed
addresses:
- type: NamedAddress
value: prow-infra-cert-manager-io
listeners:
- name: http
protocol: HTTP
port: 80
- name: https
hostname: prow.infra.cert-manager.io
port: 443
protocol: HTTPS
tls:
mode: Terminate
certificateRefs:
- name: prow-infra-cert-manager-io-tls
---
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: prow-gateway-redirect
namespace: default
spec:
parentRefs:
- kind: Gateway
name: prow-gateway
sectionName: http
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
---
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1
metadata:
name: prow-gateway-route
namespace: default
spec:
parentRefs:
- kind: Gateway
name: prow-gateway
sectionName: https
rules:
- matches:
- path:
type: PathPrefix
value: "/hook"
backendRefs:
- name: hook
port: 8888
- matches:
- path:
type: PathPrefix
value: "/"
backendRefs:
- name: deck
port: 80