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