forked from voyagermesh/voyager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathingress.yaml
More file actions
179 lines (179 loc) · 4.1 KB
/
ingress.yaml
File metadata and controls
179 lines (179 loc) · 4.1 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
name: haproxy
namespace: default
spec:
backend:
headerRule:
- X-Forwarded-Host %[req.hdr(Host)]
- X-Forwarded-Port %[dst_port]
- X-Forwarded-Proto https
serviceName: phabricator
servicePort: "80"
rules:
- host: maven.example.com
http:
paths:
- backend:
rewriteRule:
- ^([^\ :]*)\ /(.*)$ \1\ /maven/\2
serviceName: artifact-server
servicePort: "80"
- host: composer.example.com
http:
paths:
- backend:
rewriteRule:
- ^([^\ :]*)\ /(.*)$ \1\ /composer/\2
serviceName: artifact-server
servicePort: "80"
- host: npm.example.com
http:
paths:
- backend:
rewriteRule:
- ^([^\ :]*)\ /(.*)$ \1\ /npm/\2
serviceName: artifact-server
servicePort: "80"
- host: docker.example.com
http:
paths:
- backend:
rewriteRule:
- ^([^\ :]*)\ /(.*)$ \1\ /docker/\2
serviceName: artifact-server
servicePort: "80"
- host: api.example.com
http:
paths:
- backend:
serviceName: authserver
servicePort: "9021"
path: /kubernetes/v1beta1/webhooks
- host: auth.example.com
http:
paths:
- backend:
serviceName: example-loginserver
servicePort: "7070"
path: /oauth
- host: auth.example.com
http:
paths:
- backend:
headerRule:
- X-Client-IP %[src]
rewriteRule:
- ^([^\ ]*)\ /client-ip/(.*) \1\ /\2
serviceName: client-ip
servicePort: "60010"
path: /client-ip
- host: '*.example.info'
http:
paths:
- backend:
serviceName: aphlictserver
servicePort: "22280"
path: /_org/ws
- host: api.example.com
http:
paths:
- backend:
rewriteRule:
- ^([^\ :]*)\ /(.*)$ \1\ /_org/api/\2
serviceName: example-apis
servicePort: "9866"
path: /onebox
- host: api.example.com
http:
paths:
- backend:
rewriteRule:
- ^([^\ :]*)\ /(.*)$ \1\ /_org/api/\2
serviceName: apiserver
servicePort: "9877"
- host: '*.example.info'
http:
paths:
- backend:
serviceName: apiserver
servicePort: "9877"
path: /_org/api
- host: '*.example.info'
http:
paths:
- backend:
serviceName: ui-server
servicePort: "80"
path: /artifactory
- host: '*.example.info'
http:
paths:
- backend:
serviceName: ui-server
servicePort: "80"
path: /ui-server
- host: '*.example.info'
http:
paths:
- backend:
serviceName: ui-server
servicePort: "80"
path: /ci
- host: '*.example.info'
http:
paths:
- backend:
serviceName: grafana
servicePort: "3000"
path: /grafana
- host: '*.example.info'
http:
paths:
- backend:
headerRule:
- Cache-Control public
serviceName: ui-server
servicePort: "80"
path: /_org/assets
- host: jenkins.example.com
http:
paths:
- backend:
serviceName: jenkins-service
servicePort: "80"
- host: api.example.com
tcp:
- backend:
serviceName: apiserver
servicePort: "50077"
port: "3443"
secretName: cert-example-com
- host: api.example.com
tcp:
- backend:
serviceName: example-apis
servicePort: "50066"
port: "3553"
secretName: cert-example-com
- host: diffusion.example.com
tcp:
- backend:
serviceName: phabricator
servicePort: "22"
port: "22"
tls:
- hosts:
- auth.example.com
- maven.example.com
- composer.example.com
- npm.example.com
- docker.example.com
- api.example.com
- jenkins.example.com
- '*.example.info'
secretName: cert-example-com
- hosts:
- '*.example.info'
secretName: cert-example-info