From 699b9f5d793068b89bb596f939d3b1f41c6ed7a8 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 | 1 + meali/resources/routes.yaml | 16 ++++++++++++++++ meali/resources/service.yaml | 12 ++++++++++++ 3 files changed, 29 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..dc5b5c5 100644 --- a/meali/kustomization.yaml +++ b/meali/kustomization.yaml @@ -14,6 +14,7 @@ resources: - resources/db/user.yaml - resources/pvc.yaml - resources/deployment.yaml + - resources/service.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