From 5ee61e48bf37f5e9d4154cd54c232b00dab92dcc Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Tue, 28 Apr 2026 23:11:51 +0700 Subject: [PATCH] chore(apps): convert staging apps to Gateway API --- apps/finance/actualbudget/staging.yaml | 34 ++++++++++++------------- apps/khuedoan/blog/staging.yaml | 34 ++++++++++++------------- apps/khuedoan/homelab-docs/staging.yaml | 34 ++++++++++++------------- apps/khuedoan/notes/staging.yaml | 34 ++++++++++++------------- apps/test/example/staging.yaml | 34 ++++++++++++------------- 5 files changed, 85 insertions(+), 85 deletions(-) diff --git a/apps/finance/actualbudget/staging.yaml b/apps/finance/actualbudget/staging.yaml index ad25b3d..4d5dd28 100644 --- a/apps/finance/actualbudget/staging.yaml +++ b/apps/finance/actualbudget/staging.yaml @@ -15,24 +15,24 @@ service: http: port: 5006 protocol: HTTP -ingress: +route: main: - enabled: true - className: nginx - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - hosts: - - host: budget.staging.khuedoan.com - paths: - - path: / - pathType: Prefix - service: - identifier: main - port: http - tls: - - hosts: - - budget.staging.khuedoan.com - secretName: actualbudget-tls-certificate + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: gateway + namespace: istio-system + hostnames: + - budget.staging.khuedoan.com + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - identifier: main + port: http persistence: data: accessMode: ReadWriteOnce diff --git a/apps/khuedoan/blog/staging.yaml b/apps/khuedoan/blog/staging.yaml index 76816c0..ce9ca51 100644 --- a/apps/khuedoan/blog/staging.yaml +++ b/apps/khuedoan/blog/staging.yaml @@ -17,21 +17,21 @@ service: http: port: 3000 protocol: HTTP -ingress: +route: main: - enabled: true - className: nginx - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - hosts: - - host: www.staging.khuedoan.com - paths: - - path: / - pathType: Prefix - service: - identifier: main - port: 3000 - tls: - - hosts: - - www.staging.khuedoan.com - secretName: blog-tls-certificate + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: gateway + namespace: istio-system + hostnames: + - www.staging.khuedoan.com + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - identifier: main + port: 3000 diff --git a/apps/khuedoan/homelab-docs/staging.yaml b/apps/khuedoan/homelab-docs/staging.yaml index 80b8daa..f93439b 100644 --- a/apps/khuedoan/homelab-docs/staging.yaml +++ b/apps/khuedoan/homelab-docs/staging.yaml @@ -44,24 +44,24 @@ service: http: port: 80 protocol: HTTP -ingress: +route: main: - enabled: true - className: nginx - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - hosts: - - host: homelab.staging.khuedoan.com - paths: - - path: / - pathType: ImplementationSpecific - service: - identifier: main - port: http - tls: - - hosts: - - homelab.staging.khuedoan.com - secretName: homelab-docs-tls-certificate + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: gateway + namespace: istio-system + hostnames: + - homelab.staging.khuedoan.com + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - identifier: main + port: http persistence: source: type: emptyDir diff --git a/apps/khuedoan/notes/staging.yaml b/apps/khuedoan/notes/staging.yaml index ce86be3..084e089 100644 --- a/apps/khuedoan/notes/staging.yaml +++ b/apps/khuedoan/notes/staging.yaml @@ -18,24 +18,24 @@ service: http: port: 3000 protocol: HTTP -ingress: +route: main: - enabled: true - className: nginx - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - hosts: - - host: notes.staging.khuedoan.com - paths: - - path: / - pathType: Prefix - service: - identifier: main - port: 3000 - tls: - - hosts: - - notes.staging.khuedoan.com - secretName: notes-tls-certificate + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: gateway + namespace: istio-system + hostnames: + - notes.staging.khuedoan.com + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - identifier: main + port: 3000 persistence: data: accessMode: ReadWriteOnce diff --git a/apps/test/example/staging.yaml b/apps/test/example/staging.yaml index 23cf572..23d5814 100644 --- a/apps/test/example/staging.yaml +++ b/apps/test/example/staging.yaml @@ -19,21 +19,21 @@ service: http: port: 8080 protocol: HTTP -ingress: +route: main: - enabled: true - className: nginx - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - hosts: - - host: example.staging.khuedoan.com - paths: - - path: / - pathType: Prefix - service: - identifier: main - port: 8080 - tls: - - hosts: - - example.staging.khuedoan.com - secretName: example-tls-certificate + kind: HTTPRoute + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: gateway + namespace: istio-system + hostnames: + - example.staging.khuedoan.com + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - identifier: main + port: 8080 -- 2.51.2