Skip to content

Commit

Permalink
feat(k8s): Simplify deployments and add work-2 ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Feb 25, 2025
1 parent 47e4bfb commit ebef987
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions k8s/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ metadata:
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "X-Frame-Options: ALLOWALL";
more_set_headers "X-XSS-Protection: 1; mode=block";
more_set_headers "X-Content-Type-Options: nosniff";
spec:
rules:
- host: work-1-abdcoxuzwicybucg.prod-runtime.all-hands.dev
Expand All @@ -32,4 +28,20 @@ spec:
name: openhands-frontend-service
port:
number: 12000

- host: work-2-abdcoxuzwicybucg.prod-runtime.all-hands.dev
http:
paths:
- path: /api/(.*)
pathType: Prefix
backend:
service:
name: openhands-backend-service
port:
number: 12000
- path: /(.*)
pathType: Prefix
backend:
service:
name: openhands-frontend-service
port:
number: 12000

0 comments on commit ebef987

Please sign in to comment.