Skip to content

Unable to setup Letsencrypt/SSL with Loadbalancer #411

Closed Answered by abhishek-ch
abhishek-ch asked this question in Q&A
Discussion options

You must be logged in to vote

So I finally managed to get the ssl working but Cert Manager/Let's Encrypt didnt work. So I generated the certificate and created a secret

kubectl create secret generic abc-mysite-tls --from-file=tls.crt=./tls.crt --from-file=tls.key=./tls.key

And Added the following in the ingress.yml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hello-world
  annotations: # <<<--- Add annotation
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - abc.mysite.com
    secretName: abc-mysite-tls
  rules:
  - host: abc.mysite.com
    http:
      paths:
      - path: /
        pathType: Prefix
    …

Replies: 3 comments 22 replies

Comment options

You must be logged in to vote
4 replies
@abhishek-ch
Comment options

@vitobotta
Comment options

@abhishek-ch
Comment options

@abhishek-ch
Comment options

Comment options

You must be logged in to vote
13 replies
@abhishek-ch
Comment options

@vitobotta
Comment options

@abhishek-ch
Comment options

@vitobotta
Comment options

@vitobotta
Comment options

Comment options

You must be logged in to vote
5 replies
@vitobotta
Comment options

@abhishek-ch
Comment options

@vitobotta
Comment options

@vitobotta
Comment options

@abhishek-ch
Comment options

Answer selected by abhishek-ch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants