duby-blog: migrate to gateway api

This commit is contained in:
williamp committed 2026-10-11 12:37:31 -04:00
1 parent 4453cc2b71
commit e84df28703
3 files changed
+38 -33

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: traefik
spec:
gatewayClassName: traefik
listeners:
- name: https
protocol: HTTPS
port: 8443
tls:
mode: Terminate
certificateRefs:
- name: cert-dubyatp-xyz
namespace: cert-manager
allowedRoutes:
namespaces:
from: Same
+20
View File
@@ -0,0 +1,20 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: duby-blog
spec:
parentRefs:
- name: traefik
sectionName: https
kind: Gateway
hostnames:
- dubyatp.xyz
- www.dubyatp.xyz
rules:
- matches:
- path:
type: PathPrefix
value: "/blog"
backendRefs:
- name: blog-dubyatp-xyz-svc
port: 80
-33
View File
@@ -1,33 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: duby-blog-ingress
labels:
name: duby-blog-ingress
spec:
rules:
- host: dubyatp.xyz
http:
paths:
- pathType: Prefix
path: "/blog"
backend:
service:
name: blog-dubyatp-xyz-svc
port:
number: 80
- host: www.dubyatp.xyz
http:
paths:
- pathType: Prefix
path: "/blog"
backend:
service:
name: blog-dubyatp-xyz-svc
port:
number: 80
tls:
- hosts:
- dubyatp.xyz
- www.dubyatp.xyz
secretName: cert-dubyatp-xyz