Skip to content

Commit

Permalink
Merge pull request #959 from Carrotzpc/main
Browse files Browse the repository at this point in the history
fix(deploy): fix agent-portal ingress cache issue
  • Loading branch information
bjwswang authored Mar 29, 2024
2 parents f4655d3 + ae0c818 commit 8745bc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/arcadia/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: arcadia
description: A Helm chart(Also a KubeBB Component) for KubeAGI Arcadia
type: application
version: 0.3.27
version: 0.3.28
appVersion: "0.2.1"

keywords:
Expand Down
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 8745bc8

Please sign in to comment.