feat: IngressRoutes — websecure (weighted) + web (redirect)

This commit is contained in:
Claude AI
2026-03-04 18:41:33 +00:00
parent d906dd2d25
commit e9823e56ad

View File

@@ -0,0 +1,38 @@
---
# HTTPS entrypoint — routes nginx.thedevops.dev through weighted TraefikService
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-weighted
namespace: nginx-mcp
spec:
entryPoints:
- websecure
routes:
- match: Host(`nginx.thedevops.dev`)
kind: Rule
services:
- name: nginx-weighted
namespace: nginx-mcp
kind: TraefikService
tls:
secretName: nginx-weighted-tls
---
# HTTP entrypoint — redirects all HTTP traffic to HTTPS via middleware
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-weighted-http
namespace: nginx-mcp
spec:
entryPoints:
- web
routes:
- match: Host(`nginx.thedevops.dev`)
kind: Rule
middlewares:
- name: redirect-https
namespace: nginx-mcp
services:
- name: nginx-mcp
port: 80