From d008c9fd5a2fca3aed50576f19c38f9e6d8d1b90 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 29 Nov 2025 21:02:05 +0100 Subject: [PATCH] add ingress 2 --- deployment/api-deployment.yaml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/deployment/api-deployment.yaml b/deployment/api-deployment.yaml index 2817693..c6b9756 100644 --- a/deployment/api-deployment.yaml +++ b/deployment/api-deployment.yaml @@ -99,4 +99,27 @@ spec: - port: 80 targetPort: 8001 name: http - type: ClusterIP \ No newline at end of file + type: ClusterIP +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: api-ingress + annotations: + cert-manager.io/cluster-issuer: letsencrypt-production-http +spec: + tls: + - hosts: + - homea2-api.hottis.de + secretName: homea2-api-cert + rules: + - host: homea2-api.hottis.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: api + port: + number: 80 \ No newline at end of file