From b68b6916aa331f5714b8631edde98f0eb944c395 Mon Sep 17 00:00:00 2001 From: William P Date: Sun, 11 Oct 2026 12:45:08 -0400 Subject: [PATCH] lumfao.dubyatp.xyz: migrate to gateway api --- lumfao-dubyatp-xyz/gateway.yaml | 18 ++++++++++++++++++ lumfao-dubyatp-xyz/httproute.yaml | 19 +++++++++++++++++++ lumfao-dubyatp-xyz/ingress.yaml | 22 ---------------------- 3 files changed, 37 insertions(+), 22 deletions(-) create mode 100644 lumfao-dubyatp-xyz/gateway.yaml create mode 100644 lumfao-dubyatp-xyz/httproute.yaml delete mode 100644 lumfao-dubyatp-xyz/ingress.yaml diff --git a/lumfao-dubyatp-xyz/gateway.yaml b/lumfao-dubyatp-xyz/gateway.yaml new file mode 100644 index 0000000..40206de --- /dev/null +++ b/lumfao-dubyatp-xyz/gateway.yaml @@ -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 \ No newline at end of file diff --git a/lumfao-dubyatp-xyz/httproute.yaml b/lumfao-dubyatp-xyz/httproute.yaml new file mode 100644 index 0000000..ebff728 --- /dev/null +++ b/lumfao-dubyatp-xyz/httproute.yaml @@ -0,0 +1,19 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: lumfao-dubyatp-xyz +spec: + parentRefs: + - name: traefik + sectionName: https + kind: Gateway + hostnames: + - lumfao.dubyatp.xyz + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - name: lumfao-dubyatp-xyz-svc + port: 80 \ No newline at end of file diff --git a/lumfao-dubyatp-xyz/ingress.yaml b/lumfao-dubyatp-xyz/ingress.yaml deleted file mode 100644 index 9550587..0000000 --- a/lumfao-dubyatp-xyz/ingress.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: lumfao-dubyatp-xyz-ingress - labels: - name: lumfao-dubyatp-xyz-ingress -spec: - rules: - - host: lumfao.dubyatp.xyz - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: lumfao-dubyatp-xyz-svc - port: - number: 80 - tls: - - hosts: - - lumfao.dubyatp.xyz - secretName: cert-dubyatp-xyz \ No newline at end of file