From 1eb0f8465999d292f58366211bf890ce0716e7af Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 29 Nov 2025 20:57:49 +0100 Subject: [PATCH] add ingress --- deployment/configmap.yaml | 2 +- deployment/ui-deployment.yaml | 25 ++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/deployment/configmap.yaml b/deployment/configmap.yaml index 6d19a4f..8db1b7a 100644 --- a/deployment/configmap.yaml +++ b/deployment/configmap.yaml @@ -13,7 +13,7 @@ data: # UI specific environment variables UI_UI_PORT: "8002" - UI_API_BASE: "http://api:8001" + UI_API_BASE: "https://homea2-api.hottis.de" UI_BASE_PATH: "/" # API specific environment variables diff --git a/deployment/ui-deployment.yaml b/deployment/ui-deployment.yaml index 949c3f8..4854976 100644 --- a/deployment/ui-deployment.yaml +++ b/deployment/ui-deployment.yaml @@ -76,4 +76,27 @@ spec: - port: 80 targetPort: 8002 name: http - type: ClusterIP \ No newline at end of file + type: ClusterIP +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: ui-ingress + annotations: + cert-manager.io/cluster-issuer: letsencrypt-production-http +spec: + tls: + - hosts: + - homea2.hottis.de + secretName: homea2-ui-cert + rules: + - host: homea2.hottis.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: ui + port: + number: 80