From 3968ffc4594450b65f33b484d3cc5628012b4bd2 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 26 Nov 2024 21:56:18 +0100 Subject: [PATCH] feat(plausible): expose via HTTPS --- plausible/kustomization.yaml | 2 ++ plausible/resources/routes.yaml | 16 ++++++++++++++++ plausible/resources/service.yaml | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 plausible/resources/routes.yaml create mode 100644 plausible/resources/service.yaml diff --git a/plausible/kustomization.yaml b/plausible/kustomization.yaml index 6715f11..3080539 100644 --- a/plausible/kustomization.yaml +++ b/plausible/kustomization.yaml @@ -14,6 +14,8 @@ resources: - resources/postgres/db.yaml - resources/postgres/user.yaml - resources/deployment.yaml + - resources/service.yaml + - resources/routes.yaml secretGenerator: - name: plausible-config diff --git a/plausible/resources/routes.yaml b/plausible/resources/routes.yaml new file mode 100644 index 0000000..ca2bb92 --- /dev/null +++ b/plausible/resources/routes.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: plausible-https +spec: + parentRefs: + - name: contour + sectionName: https + namespace: projectcontour + hostnames: + - plausible.icb4dc0.de + rules: + - backendRefs: + - name: plausible + port: 3000 diff --git a/plausible/resources/service.yaml b/plausible/resources/service.yaml new file mode 100644 index 0000000..358cca4 --- /dev/null +++ b/plausible/resources/service.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: plausible +spec: + selector: + app.kubernetes.io/name: plausible + ports: + - protocol: TCP + port: 3000 + targetPort: 3000