whatismyip: migrate to gateway api

This commit is contained in:
williamp committed 2026-10-11 12:52:40 -04:00
1 parent 44fb358f45
commit 9d870b4a7d
3 files changed
+37 -22

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
+19
View File
@@ -0,0 +1,19 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: whatismyip-ingress
spec:
parentRefs:
- name: traefik
sectionName: https
kind: Gateway
hostnames:
- whatismyip.dubyatp.xyz
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: whatismyip-svc
port: 8080
-22
View File
@@ -1,22 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: whatismyip-ingress
annotations:
traefik.ingress.kubernetes.io/router.middlewares: cloudflarewarp@file
spec:
rules:
- host: whatismyip.dubyatp.xyz
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: whatismyip-svc
port:
number: 8080
tls:
- hosts:
- whatismyip.dubyatp.xyz
secretName: cert-dubyatp-xyz