Monday, 19 April 2021

Kubernetes (k3s) and certificates

 Oh, Kubernetes, how I love thee.

I've been learning and running a small cluster at home on a mix of several Raspberry Pi and a laptop. It's been a great learning experience and although it was all for internal use, I finally decided I'd try to install some certificates.

Ouch! That took a lot longer to figure out than I wanted!

Turns out that if you read up on Kubernetes and cert-manager the recommended practice is to use the nginx-ingress-controller. But when I was trying that it didn't seem to work. 

It turns out that if I had searched for k3s, then I wouldn't have had to do that deployment and I could run it all with Traefik - which is installed by default in k3s. 

So thanks but here is the right way to run cert-manager and Traefik and deploy certificates (like from LetsEncrypt.)

No comments: