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