Skip to content

Commit

Permalink
fix(deploy): fix agent-portal ingress cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Mar 29, 2024
1 parent f4655d3 commit 91b5647
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions deploy/charts/arcadia/templates/agent-portal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ metadata:
ingress-lb: portal-ingress
kubernetes.io/ingress.class: portal-ingress
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_cache static-cache;
proxy_cache_valid 404 10m;
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
proxy_cache_bypass $http_x_purge;
add_header X-Cache-Status $upstream_cache_status; # check X-Cache-Status to see if it's HIT
location /_next {
proxy_pass http://{{ .Release.Name }}-agentportal:3000;
proxy_cache static-cache;
proxy_cache_valid 404 10m;
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
proxy_cache_bypass $http_x_purge;
add_header X-Cache-Status $upstream_cache_status; # check X-Cache-Status to see if it's HIT
}
nginx.ingress.kubernetes.io/enable-access-log: "false"
nginx.ingress.kubernetes.io/enable-rewrite-log: "false"
nginx.ingress.kubernetes.io/load-balance: round_robin
Expand Down

0 comments on commit 91b5647

Please sign in to comment.