Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(web): enable proxy and reduce workers
Switch the service port to the proxy sending all traffic through it
before reaching the web containers. Reduce the number of workers for web
as the connection handling is now handled by the proxy.
  • Loading branch information
ssoriche committed Mar 16, 2025
commit 545b0ec42760b5ebb3ad69da49ba7c62df4050d0
2 changes: 1 addition & 1 deletion apps/web/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
image: metacpan/metacpan-web:latest
imagePullPolicy: Always
command: ["/uwsgi.sh"]
args: ["--http-socket", ":5001"]
args: ["--http-socket", ":5001", "--workers", "10"]
ports:
- containerPort: 5001
resources:
Expand Down
2 changes: 1 addition & 1 deletion apps/web/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
ports:
- port: 80
targetPort: 5001
targetPort: 80
selector:
app: web
---
Expand Down