Files
k3s-gitops/apps/nginx-weighted/ingressroute.yaml
2026-03-01 20:37:53 +00:00

40 lines
924 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# IngressRoute с TLS — единственная точка входа для nginx.thedevops.dev
# Весь трафик идёт через TraefikService nginx-weighted
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 → HTTPS redirect
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