File tree Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ metadata:
63
63
annotations :
64
64
kubernetes.io/ingress.class : nginx
65
65
certmanager.k8s.io/cluster-issuer : letsencrypt-prod
66
- nginx.ingress.kubernetes.io/proxy-body-size : " 0"
67
66
spec :
68
67
tls :
69
68
- hosts :
85
84
backend :
86
85
serviceName : chime
87
86
servicePort : 80
87
+
88
+ ---
89
+
90
+ apiVersion : extensions/v1beta1
91
+ kind : Ingress
92
+ metadata :
93
+ name : chime-static
94
+ namespace : chime
95
+ labels :
96
+ app : chime
97
+ annotations :
98
+ nginx.ingress.kubernetes.io/proxy-body-size : " 0"
99
+ nginx.ingress.kubernetes.io/proxy-buffering : " on" # Important!
100
+ nginx.ingress.kubernetes.io/configuration-snippet : |
101
+ proxy_cache static-cache;
102
+ proxy_cache_valid 404 1m;
103
+ proxy_cache_valid 200 10m;
104
+ proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
105
+ proxy_cache_bypass $http_x_purge;
106
+ proxy_cache_key $proxy_upstream_name$request_uri;
107
+ proxy_cache_lock on;
108
+ proxy_cache_use_stale updating;
109
+ add_header X-Cache-Status $upstream_cache_status;
110
+ spec :
111
+ rules :
112
+ - host : penn-chime.phl.io
113
+ http :
114
+ paths :
115
+ - path : /static/
116
+ backend :
117
+ serviceName : chime
118
+ servicePort : 80
119
+ - host : lke.penn-chime.phl.io
120
+ http :
121
+ paths :
122
+ - path : /static/
123
+ backend :
124
+ serviceName : chime
125
+ servicePort : 80
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ metadata:
16
16
labels :
17
17
app.kubernetes.io/name : ingress-nginx
18
18
app.kubernetes.io/part-of : ingress-nginx
19
+ data :
20
+ http-snippet : |
21
+ proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=static-cache:2m max_size=100m inactive=7d use_temp_path=off;
19
22
20
23
---
21
24
kind : ConfigMap
@@ -196,7 +199,7 @@ metadata:
196
199
app.kubernetes.io/name : ingress-nginx
197
200
app.kubernetes.io/part-of : ingress-nginx
198
201
spec :
199
- replicas : 5
202
+ replicas : 1
200
203
selector :
201
204
matchLabels :
202
205
app.kubernetes.io/name : ingress-nginx
You can’t perform that action at this time.
0 commit comments