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