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