From fbeabdb2ff11d5756164335349630c411eb2954f Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 4 Dec 2024 21:33:58 +0100 Subject: [PATCH] feat(meali): configure ingress --- meali/kustomization.yaml | 2 ++ meali/resources/routes.yaml | 16 ++++++++++++++++ meali/resources/service.yaml | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 meali/resources/routes.yaml create mode 100644 meali/resources/service.yaml diff --git a/meali/kustomization.yaml b/meali/kustomization.yaml index 86d36a9..236b4f0 100644 --- a/meali/kustomization.yaml +++ b/meali/kustomization.yaml @@ -14,6 +14,8 @@ resources: - resources/db/user.yaml - resources/pvc.yaml - resources/deployment.yaml + - resources/service.yaml + - resources/routes.yaml secretGenerator: - name: meali-config diff --git a/meali/resources/routes.yaml b/meali/resources/routes.yaml new file mode 100644 index 0000000..2c7d0b5 --- /dev/null +++ b/meali/resources/routes.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: meali-https +spec: + parentRefs: + - name: contour + sectionName: https + namespace: projectcontour + hostnames: + - meali.icb4dc0.de + rules: + - backendRefs: + - name: meali + port: 9000 diff --git a/meali/resources/service.yaml b/meali/resources/service.yaml new file mode 100644 index 0000000..99d70f1 --- /dev/null +++ b/meali/resources/service.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: meali +spec: + selector: + app.kubernetes.io/name: meali + ports: + - protocol: TCP + port: 9000 + targetPort: 9000