From e84df2870336a899bae84819f7b40bc0e7c9755e Mon Sep 17 00:00:00 2001 From: William P Date: Sun, 11 Oct 2026 12:37:31 -0400 Subject: [PATCH] duby-blog: migrate to gateway api --- duby-blog/gateway.yaml | 18 ++++++++++++++++++ duby-blog/httproute.yaml | 20 ++++++++++++++++++++ duby-blog/ingress.yaml | 33 --------------------------------- 3 files changed, 38 insertions(+), 33 deletions(-) create mode 100644 duby-blog/gateway.yaml create mode 100644 duby-blog/httproute.yaml delete mode 100644 duby-blog/ingress.yaml diff --git a/duby-blog/gateway.yaml b/duby-blog/gateway.yaml new file mode 100644 index 0000000..40206de --- /dev/null +++ b/duby-blog/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/duby-blog/httproute.yaml b/duby-blog/httproute.yaml new file mode 100644 index 0000000..06f97c5 --- /dev/null +++ b/duby-blog/httproute.yaml @@ -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 \ No newline at end of file diff --git a/duby-blog/ingress.yaml b/duby-blog/ingress.yaml deleted file mode 100644 index 9a93135..0000000 --- a/duby-blog/ingress.yaml +++ /dev/null @@ -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 \ No newline at end of file