From 869e8436df09f5984481f21fd36a3c85ea9059ac Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 25 Jun 2025 15:09:08 +0100 Subject: [PATCH] Fix ingress Signed-off-by: Marcus Noble --- manifests/yay-or-nay/yay-or-nay.yaml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/manifests/yay-or-nay/yay-or-nay.yaml b/manifests/yay-or-nay/yay-or-nay.yaml index 383e240..6fc555c 100644 --- a/manifests/yay-or-nay/yay-or-nay.yaml +++ b/manifests/yay-or-nay/yay-or-nay.yaml @@ -59,17 +59,25 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: yay-or-nay + namespace: yay-or-nay labels: app.kubernetes.io/name: yay-or-nay + annotations: + cert-manager.io/cluster-issuer: letsencrypt + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" spec: + tls: + - hosts: + - "yay-or-nay.cluster.fun" + secretName: "yay-or-nay-ingress" rules: - - host: yay-or-nay.cluster.fun - http: - paths: - - path: / - pathType: ImplementationSpecific - backend: - service: - name: yay-or-nay - port: - name: web + - host: "yay-or-nay.cluster.fun" + http: + paths: + - path: "/" + pathType: ImplementationSpecific + backend: + service: + name: yay-or-nay + port: + name: web