Free SSL Certs in Kubernetes! Cert Manager Tutorial

Sdílet
Vložit
  • čas přidán 7. 06. 2024
  • In this Video, I show you how to manage your SSL Certs in Kubernetes with Cert-Manager. We will create free SSL certificates with Letsencrypt and use them in Traefik Ingress Controller. #Kubernetes #Certmanager #Letsencrypt
    Kubernetes Playlist: • Kubernetes explained s...
    Cert-Manager: cert-manager.io
    Boilerplates: github.com/christianlempa/boi...
    CIVO-*: civo.com/thedigitallife
    Follow me:
    TWITTER: / christianlempa
    INSTAGRAM: / christianlempa
    DISCORD: / discord
    GITHUB: github.com/christianlempa
    PATREON: / christianlempa
    MY EQUIPMENT: kit.co/christianlempa
    Timestamps:
    00:00 - Introduction
    00:38 - Why use Cert-Manager?
    02:42 - The Demo Setup
    03:04 - Advertisement-*
    03:26 - Create a new Kubernetes Cluster
    04:29 - Install Cert-Manager
    06:06 - Create a ClusterIssuer
    10:43 - Create a Certificate
    12:50 - Troubleshooting
    14:02 - Use our Cert in Traefik Ingress
    ________________
    All links with "*" are affiliate links.

Komentáře • 62

  • @0xb1b18
    @0xb1b18 Před rokem +6

    This video is stunning, as are all of your videos. You are actually explaining complicated concepts in simple terms, delivering knowledge to your viewers. Much appreciated!

  • @christian15213
    @christian15213 Před rokem +1

    OMG i can't thanking you enough for this video. I have watched it 100 times. Clutch.

  • @mananalosubo
    @mananalosubo Před 9 měsíci

    Muchas gracias. Estoy aprendiendo kubernetes y cada vez me motiva mas aprenderlo porque me hace las cosas mucho mas faciles que docker y portainer. Ademas de que lo siento más rápido en todos los aspectos.

  • @aceisastud
    @aceisastud Před rokem +1

    Nice work man. I appreciate it as I have been overthinking TLS for awhile now and your video helped to simplify it for me.

  • @mari__b
    @mari__b Před 2 lety

    great video! I just setup cert-manager + traefik a few days before and was able to verify my steps in my scripts. so thanks for the "missing piece"!

  • @ocheejembi9187
    @ocheejembi9187 Před rokem

    thanks so much, this really helped me understand cert-manager - especially the DNS01 challenge bit.

  • @lakshminarasimmanv
    @lakshminarasimmanv Před 2 lety +1

    Thanks for the videos. I’ve learnt a lot from you. Keep continuing uploading videos like this.

  • @randeerlalanga
    @randeerlalanga Před 8 měsíci

    Your videos are superb, I learned so much

  • @dedpossum66
    @dedpossum66 Před rokem +1

    Very useful! I've tinkered around with this quite a bit and honestly the http challenge stuff is quite a pain.

  • @yahiyaayoub5366
    @yahiyaayoub5366 Před rokem

    I really enjoyed the tutorial and thanks a lot, it answers many questions.

    • @christianlempa
      @christianlempa  Před rokem +1

      Thank you! Great it helped you ;)

    • @yahiyaayoub5366
      @yahiyaayoub5366 Před rokem

      @@christianlempa Can you please tell me which terminal you use and how did you shortcut the commands of kubectl like kubectl switch to specific namespace

    • @yahiyaayoub5366
      @yahiyaayoub5366 Před rokem

      @@christianlempa Also can you please provide any configuration needed when enable proxy on dns record in cloudflare because it is mandatory to use proxy setting for the dns record

  • @raphaelschmidt3465
    @raphaelschmidt3465 Před 10 měsíci +4

    Hi Christian,
    trying to follow your tutorial, but what exactly is "example-issuer-account-key"?

  • @giorgostsilivis6771
    @giorgostsilivis6771 Před rokem

    you saved my day!

  • @esu7116
    @esu7116 Před 2 lety +4

    Great tutorial, really nice educational content. I have a question:
    I've noticed that you've disabled 'proxy' at 12:30 ; what if you want to keep it (i.e. keeping a secure connection between *both* the user and CF, and CF and the cluster)?
    How would you do that?
    Thanks for the video! 🤩

    • @christianlempa
      @christianlempa  Před 2 lety +3

      You can of course enable it, I disabled it to show how the cert-manager certificate is working.

  • @christian15213
    @christian15213 Před rokem

    do you have to use a dns zone? For example I just want to use the dns that AWS or Azure gives me.

  • @user-xp6kb1rg1h
    @user-xp6kb1rg1h Před 7 měsíci

    when we use this for multiple applications, do I need to create seperate namespace for each certificate ?

  • @unone9220
    @unone9220 Před 11 měsíci

    Would be possible to create a certificate to be used only for a local service ("home lab") but using the cloudflare to answer the dns01 challenge?

  • @jayglynn7349
    @jayglynn7349 Před 2 měsíci

    Hi, do I have to open port 80 on public rule to make the certificaterequest "true" state ?

  • @lva98
    @lva98 Před 2 lety +1

    I use cert manager + ingress for a long time, but its the first time that I understand how to troubleshooting it

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Cool! I'm glad it was still useful 😀

    • @javi_labs3769
      @javi_labs3769 Před 2 lety +1

      If you want to know what cert-manager is doing you can check the logs of the cert-manager pods with "kubectl logs", I use that to troubleshoot as well (I made a video on how to do this but with duckdns but is in spanish only, for now). I really like the quality of this video and the way it is explained.

    • @lva98
      @lva98 Před 2 lety

      @@javi_labs3769 thank you Javi, I'll take a look

  • @devopsjunior3888
    @devopsjunior3888 Před rokem

    Obrigado

  • @limak-ys4fr
    @limak-ys4fr Před 2 lety

    Awesome

  • @Spydaw
    @Spydaw Před 2 lety

    Awesome video, very informative thank you.
    I screwed up when I was trying to setup Argo on my cluster, I deleted and applied it a good few times and sadly I exceeded the limit on Lets Encrypt, so I am blocked for a week.

  • @freibuis
    @freibuis Před 11 měsíci

    ok, what if you dont know the cluster t12:32 and you want wild card cert?

  • @NomiTrd
    @NomiTrd Před 2 lety

    Nice

  • @ramprasd89
    @ramprasd89 Před 2 lety +1

    Hey, First of all, Thanks a lot for the video!
    In my case the "Waiting on certificate issuance from order" stays for ever!! Any idea what the issue could be?

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Take a look at the troubleshooting guides on cert-managers docu, they help a lot!

  • @papstrohrspatz1576
    @papstrohrspatz1576 Před 2 lety

    Do you know how to include multiple wildcard certificates (Lets Encrypt for external domain & self signed for internal domain) in Traefik? You can't read the secret (wildcard certificate) which lives in a central namespace from an ingress object in a different namespace. The documentation is unfortunately pretty bad at Traefik :/

    • @christianlempa
      @christianlempa  Před 2 lety +1

      You can still manage self-signed certs in cert-manager, so why not do this instead of traefik?

  • @bernardchisumo4054
    @bernardchisumo4054 Před 2 lety

    Nice Tutoria
    Do you have any tutorial for setting Free SSL Certs in Docker via docker-compose file!?

    • @christianlempa
      @christianlempa  Před 2 lety +2

      I have done a tutorial about Traefik and NPM in Docker, Maybe that's helpful to you!

    • @bernardchisumo4054
      @bernardchisumo4054 Před 2 lety

      @@christianlempa kindly share the links

  • @susmitroy9178
    @susmitroy9178 Před 8 měsíci

    Wow, you explained it so nice that it now seems,as it called in German: einfach 😅😅

  • @LampJustin
    @LampJustin Před 2 lety

    Another thing to note is that one should specify a different DNS server like gdns or cldflre for cert-manager, as the DNS-01 challenge will be drastically faster and you will then also be able to use split DNS for local DNS resolution of your domain.

    • @christianlempa
      @christianlempa  Před 2 lety

      Sounds interesting, but I have no idea what you're talking about :D Could you share some more information with me? Maybe in Discord or Mail? Thank you!

  • @songmeo
    @songmeo Před rokem

    is your domain registar also cloudflare?

  • @lakshminarasimmanv
    @lakshminarasimmanv Před 2 lety

    Can you make a video on how to setup haproxy as reverse proxy for home server like for plex, etc.,

  • @christian15213
    @christian15213 Před rokem

    I have a question can you help.

  • @elibukin4840
    @elibukin4840 Před 4 dny

    the "name: example-issuer-account-key" is unclear.

  • @et4493
    @et4493 Před 11 měsíci

    This was an absolute pain, but not your fault. GKE was not cooperating lol. Besides, in my case I had to specify the namespace of cert-manager for the cloudflare apikey in order for it to work. Just letting you know guys

  • @luizmainart3169
    @luizmainart3169 Před rokem

    Where's treaefik?

  • @satyamARAS
    @satyamARAS Před 2 lety +1

    can you do devops pls.// leave linux and version control we already have alot of vedios // help me out o=for junior devops role.

  • @sfincione2000
    @sfincione2000 Před rokem

    fyi CRDs = Custom Resource Definitions, not Role

  • @testes2390
    @testes2390 Před 2 lety

    Thank you, very good! is there a way you could share the file nginx-test.yml please?