-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathingress.yaml
More file actions
166 lines (166 loc) · 4.92 KB
/
ingress.yaml
File metadata and controls
166 lines (166 loc) · 4.92 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
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-nginx
namespace: default
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
include /etc/nginx/mime.types;
more_set_headers "Access-Control-Max-Age: 600";
more_set_headers "X-XSS-Protection: 1; mode=block";
more_set_headers "X-Content-Type-Options: nosniff";
more_set_headers "Vary: Origin";
more_set_headers "Cache-Control: no-store, no-cache, private";
more_set_headers "Strict-Transport-Security: max-age=31536000";
nginx.ingress.kubernetes.io/proxy-body-size: "100m"
nginx.org/client-max-body-size: "100m"
# Rate limiting annotations for basic DDoS protection
## Limit to 5 requests per second per client IP
nginx.ingress.kubernetes.io/limit-rps: "100"
## Limit to 100 requests per minute per client IP
nginx.ingress.kubernetes.io/limit-rpm: "1000"
## Limit to 20 simultaneous connections per client IP
nginx.ingress.kubernetes.io/limit-connections: "100"
## Optionally, restrict access to known IP ranges
# nginx.ingress.kubernetes.io/whitelist-source-range: "203.0.113.0/24,198.51.100.0/24"
spec:
ingressClassName: nginx
rules:
- host: usupport.online
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: staging.usupport.online
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "poland.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "poland.staging.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "kazakhstan.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "kazakhstan.staging.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "romania.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "romania.staging.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "armenia.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "armenia.staging.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "playandheal.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
- host: "playandheal.staging.usupport.online"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webproxy-service
port:
number: 80
tls:
- hosts: # Add each external domain name within the list below to get a valid certificate
- "usupport.online"
- "staging.usupport.online"
- "poland.usupport.online"
- "poland.staging.usupport.online"
- "kazakhstan.usupport.online"
- "kazakhstan.staging.usupport.online"
- "romania.usupport.online"
- "romania.staging.usupport.online"
- "armenia.usupport.online"
- "armenia.staging.usupport.online"
- "playandheal.usupport.online"
- "playandheal.staging.usupport.online"
secretName: tls-secret