williamtpeebles.com: migrate to gateway api

This commit is contained in:
williamp committed 2026-10-11 12:48:43 -04:00
1 parent b68b6916aa
commit 719391a96c
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-williamtpeebles-com
namespace: cert-manager
allowedRoutes:
namespaces:
from: Same
+20
View File
@@ -0,0 +1,20 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: williamtpeebles-com
spec:
parentRefs:
- name: traefik
sectionName: https
kind: Gateway
hostnames:
- williamtpeebles.com
- www.williamtpeebles.com
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: williamtpeebles-com-svc
port: 80
-33
View File
@@ -1,33 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: williamtpeebles-com-ingress
labels:
name: williamtpeebles-com-ingress
spec:
rules:
- host: williamtpeebles.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: williamtpeebles-com-svc
port:
number: 80
- host: www.williamtpeebles.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: williamtpeebles-com-svc
port:
number: 80
tls:
- hosts:
- williamtpeebles.com
- www.williamtpeebles.com
secretName: cert-williamtpeebles-com