File tree Expand file tree Collapse file tree 5 files changed +27
-37
lines changed Expand file tree Collapse file tree 5 files changed +27
-37
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,20 @@ server {
32
32
add_header X-Proxy-Cache $upstream_cache_status;
33
33
}
34
34
35
+ location /django-media/ {
36
+ proxy_ssl_server_name on;
37
+ proxy_pass http://{ENVIRONMENT}-django;
38
+ proxy_connect_timeout 5s;
39
+ proxy_cache_background_update on;
40
+ proxy_cache_lock on;
41
+ proxy_cache_lock_age 10s;
42
+ proxy_cache_lock_timeout 10s;
43
+ proxy_cache_revalidate on;
44
+ proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
45
+ proxy_cache_valid 200 1d;
46
+ add_header X-Proxy-Cache $upstream_cache_status;
47
+ }
48
+
35
49
# redirect server error pages to the static page /50x.html
36
50
#
37
51
error_page 500 502 503 504 /50x.html;
Original file line number Diff line number Diff line change 43
43
host : {{ .Values.route.host }}
44
44
path : /django-static/
45
45
46
- ---
47
- apiVersion : route.openshift.io/v1
48
- kind : Route
49
- metadata :
50
- name : {{ template "app.fullname" . }}-backend-media
51
- labels : {{ include "app.labels" . | nindent 4 }}
52
- {{ if .Values.route.iprestricted }}
53
- annotations :
54
- haproxy.router.openshift.io/ip_whitelist : {{ .Values.route.ipallowlist }}
55
- {{ end }}
56
- spec :
57
- to :
58
- kind : Service
59
- name : {{ template "app.fullname" . }}
60
- port :
61
- targetPort : 80-tcp
62
- tls :
63
- termination : edge
64
- insecureEdgeTerminationPolicy : Redirect
65
- wildcardPolicy : None
66
- host : {{ .Values.route.host }}
67
- path : /django-media/
68
-
69
-
70
46
---
71
47
apiVersion : route.openshift.io/v1
72
48
kind : Route
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ image-caching:
64
64
resources :
65
65
requests :
66
66
cpu : 50m
67
- memory : 50Mi
67
+ memory : 100Mi
68
68
limits :
69
69
cpu : 250m
70
- memory : 100Mi
70
+ memory : 150Mi
71
71
env :
72
72
imagecachingConfigMap : prod-drivebc-image-caching
73
73
autoscaling :
92
92
cpu : 50m
93
93
memory : 50Mi
94
94
limits :
95
- cpu : 100m
95
+ cpu : 200m
96
96
memory : 100Mi
97
97
98
98
static :
@@ -106,10 +106,10 @@ static:
106
106
resources :
107
107
requests :
108
108
cpu : 50m
109
- memory : 50Mi
110
- limits :
111
- cpu : 150m
112
109
memory : 100Mi
110
+ limits :
111
+ cpu : 250m
112
+ memory : 150Mi
113
113
env :
114
114
staticConfigMap : prod-drivebc-static
115
115
staticSecret : prod-drivebc-static
Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ static:
105
105
deployment :
106
106
resources :
107
107
requests :
108
- cpu : 20m
109
- memory : 50Mi
110
- limits :
111
- cpu : 150m
108
+ cpu : 50m
112
109
memory : 100Mi
110
+ limits :
111
+ cpu : 250m
112
+ memory : 150Mi
113
113
env :
114
114
staticConfigMap : test-drivebc-static
115
115
staticSecret : test-drivebc-static
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ image-caching:
64
64
resources :
65
65
requests :
66
66
cpu : 50m
67
- memory : 50Mi
67
+ memory : 100Mi
68
68
limits :
69
69
cpu : 250m
70
- memory : 100Mi
70
+ memory : 150Mi
71
71
env :
72
72
imagecachingConfigMap : uat-drivebc-image-caching
73
73
autoscaling :
92
92
cpu : 50m
93
93
memory : 50Mi
94
94
limits :
95
- cpu : 100m
95
+ cpu : 200m
96
96
memory : 100Mi
97
97
98
98
static :
You can’t perform that action at this time.
0 commit comments