fix: add direct IngressRoutes for nginx-stable and nginx-canary subdomains #5

Merged
admin merged 4 commits from feat/nginx-direct-routes into main 2026-03-04 19:02:25 +00:00
4 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: nginx-canary-tls
namespace: nginx-canary
spec:
secretName: nginx-canary-tls
issuerRef:
name: letsencrypt-http
kind: ClusterIssuer
dnsNames:
- nginx-canary.thedevops.dev

View File

@@ -0,0 +1,37 @@
---
# Direct HTTPS access to canary app at nginx-canary.thedevops.dev
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-canary-direct
namespace: nginx-canary
spec:
entryPoints:
- websecure
routes:
- match: Host(`nginx-canary.thedevops.dev`)
kind: Rule
services:
- name: nginx-canary
port: 80
tls:
secretName: nginx-canary-tls
---
# HTTP redirect for nginx-canary.thedevops.dev
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-canary-direct-http
namespace: nginx-canary
spec:
entryPoints:
- web
routes:
- match: Host(`nginx-canary.thedevops.dev`)
kind: Rule
middlewares:
- name: redirect-https
namespace: nginx-mcp
services:
- name: nginx-canary
port: 80

View File

@@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: nginx-stable-tls
namespace: nginx-mcp
spec:
secretName: nginx-stable-tls
issuerRef:
name: letsencrypt-http
kind: ClusterIssuer
dnsNames:
- nginx-stable.thedevops.dev

View File

@@ -0,0 +1,37 @@
---
# Direct HTTPS access to stable app at nginx-stable.thedevops.dev
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-stable-direct
namespace: nginx-mcp
spec:
entryPoints:
- websecure
routes:
- match: Host(`nginx-stable.thedevops.dev`)
kind: Rule
services:
- name: nginx-mcp
port: 80
tls:
secretName: nginx-stable-tls
---
# HTTP redirect for nginx-stable.thedevops.dev
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-stable-direct-http
namespace: nginx-mcp
spec:
entryPoints:
- web
routes:
- match: Host(`nginx-stable.thedevops.dev`)
kind: Rule
middlewares:
- name: redirect-https
namespace: nginx-mcp
services:
- name: nginx-mcp
port: 80