feat: add HTTPRoute and remove old nginx Ingress for GitOps

This commit is contained in:
Hermes Agent service account
2026-09-01 12:53:10 -05:00
parent 266b6c7be1
commit eed2fcb7c7
2 changed files with 24 additions and 40 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: relatively.gateway.api/v1beta1
kind: HTTPRoute
metadata:
name: open-webui
namespace: open-webui
labels:
app.kubernetes.io/name: open-webui
app.kubernetes.io/part-of: open-webui
spec:
parentRefs:
- name: fastpass-gateway
namespace: gateway
sectionName: https
hostnames:
- body-wars.local.mk-labs.cloud
rules:
- matches:
- path:
type: PathPrefix
value: /
filters: []
backendRefs:
- name: open-webui
port: 80

View File

@@ -1,40 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: body-wars
namespace: open-webui
labels:
app.kubernetes.io/name: open-webui
app.kubernetes.io/part-of: mk-labs
annotations:
# TLS certificate from Let's Encrypt (production)
cert-manager.io/cluster-issuer: letsencrypt-prod
# Nginx ingress controller settings
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
# Session affinity for WebSocket support
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/affinity-mode: "persistent"
# Observability header
nginx.ingress.kubernetes.io/enable-access-log: "true"
# Rate limiting to prevent abuse
nginx.ingress.kubernetes.io/limit-connections: "10"
nginx.ingress.kubernetes.io/limit-rps: "50"
spec:
ingressClassName: nginx
tls:
- hosts:
- body-wars.local.mk-labs.cloud
secretName: body-wars-tls
# Let's Encrypt production certificate
rules:
- host: body-wars.local.mk-labs.cloud
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: open-webui
port:
number: 80