posts/kube-traefik-cert-manager-le/ #234
Replies: 16 comments 8 replies
-
Please note: There has been a significant change in how metallb does its address-pools. This took me quite a while to figure out since every other example I found shows it how you did it, but it has been deprecated. This is a lesson for me to RTFM sooner (https://metallb.universe.tf/configuration/#layer-2-configuration).
We'll also need an advertisement:
|
Beta Was this translation helpful? Give feedback.
-
Hi Tim, Thanks for your awesome guides. I was trying to issue Let's Encrypt certificates on a new cluster following this guide and I was getting this error: To fix it, I had to remove the double quotes around the name servers in the launchpad/kubernetes/traefik-cert-manager/cert-manager/values.yaml I created a pull request for this issue on github: techno-tim/launchpad#34 Cheers, Viliam |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, I know it goes against exactly what you have achieved with this tutorial, but could you maybe explain how to use an existing certificate instead of cert-manager? I'm using your tutorial for a testing cluster in my internship and don't seem to be able to get it to work. Per my understanding cert-manager does not allow that? Thanks Jan |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, Loving your K3S stuff - really interesting. I have a K8S (Kubeadm) piKube up and running with Traefik and cert manager all working. I have used your k3s ansible to setup a k3s cluster on proxmox and it was brilliant. I am now using this article to get Traefik and cert manager. I am totally stuck on traefik - the helm install went fine but I cannot for the life of me get dashboard access. I can get chrome to prompt for a user name and password but no matter what I type I cannot get access. I have compared it to my almost identical working k8s dashboard setup for traefik and cannot see what I am doing wrong! Interestingly I have tried removing the middleware from the ingressroute but I am still getting prompted for a password - I don't understand why that should be the case? Next step is to completely remove traefik and start again wih a fresh helm install - any suggestions on why basicauth may not be working? I have in the back of my mind something to do with a security realm from my k8s install but I just cant see the problem Adrian |
Beta Was this translation helpful? Give feedback.
-
This is great and I was able to tweak this and get route53 working for wildcards. But how can we get the dashboard to use the new live production cert instead of it's own? I uncommented the following in the dashboard ingress.yml and applied it.
But it's still using the old self-signed traefik one. |
Beta Was this translation helpful? Give feedback.
-
My dns provider is domains.google.com so I had to use a webhook. When the webhook makes a request to update the dns records it gets something like this : x509: certificate is valid for x.default.traefik not y. same thing happens with my rancher instance when I try to add a new repo similar issue. example Get "https://charts.jetstack.io/index.yaml": x509: certificate is valid for eed820bb8954c7e99e63219796ded95d.1c4467d7c584ce11c30c573d8a187bf4.traefik.default, not charts.jetstack.io |
Beta Was this translation helpful? Give feedback.
-
Simplest thing to do would be to setup a port forward from your router to your metallb address using port 443. Then publish blog.mydomain.com <http://blog.mydomain.com/> to cloud flare as a CNAME of whatever host you are dynamically updating from home-assistant.
This will in theory expose all of your services on the traffic host but you have to know the correct hostname to access them.
I am considering running two traefik instances, one for external and one of internal and using different traffic classnames to direct services to internal or external
… On 26 Apr 2023, at 14:26, madmurl0c ***@***.***> wrote:
This may be a bit beyond the scope of this tutorial but what to do if I'd like to expose services from my k3s cluster to the outside world? Now that I have valid certificates I would like to have blog.mydomain.com reachable from the outside world. Is there a way to communicate the ipv4/ipv6 addresses of the metallb load balancer to cloudflare?
Currently I have my DNS pointed to my Home Assistant VM (using the Home Assistant cloudflare integration) and use the Nginx Proxy Manager Add-on instead of traefik.
—
Reply to this email directly, view it on GitHub <#234 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAH4WOQ3PUNTAQYOMNACQXLXDEO7HANCNFSM6AAAAAAVK6YITM>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
hi , i ve been wondering among those traefik deploy issue on dashboard not showing up when turn on the options on values of traefik. 此网站无法提供安全连接traefik.k3s.example.com 使用了不受支持的协议。 |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, Excellent videos, and have been following to have the home lab setup. Now I have the k3s cluster up and running with Rancher. The cert-manager is giving trouble with DNS , it is ending with the error: ClusterIssuer letsencrypt-staging cert-manager-clusterissuers Error initializing issuer: Get "https://acme-staging-v02.api.letsencrypt.org./directory": dial tcp: lookup acme-staging-v02.api.letsencrypt.org.: i/o timeout. Is this any indication that the virtualized pfsense is blocking 443 traffic into kubernetes cluster? Please advise any work around for getting the cert manager up and running. thanks. pfsense |
Beta Was this translation helpful? Give feedback.
-
Hey Tim!, Fabulous video and I learnt so much about SSL thank you so much. I have a quest that still unclear, and wonder if you have any video that explain about more about Middleware part? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks |
Beta Was this translation helpful? Give feedback.
-
Tim, |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use Namecheap instead of Cloudflare? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hey Geeks, I wanted to know how the nginx deployment is working without making the service of nginx as load balancer. could anyone help me understand this!!! |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for detailing this setup (along with your ansible playbook to configure kubernetes) I'm pretty sure I followed this guide to the letter but I was not able to reach the traefik dashboard page. I knew there was some issue with not being able to reach the metallb ip address (but since the rancher ui was in the same pool, I was confused). I stumbled on this comment from github and I added the following to my L2Advertisement, and to my surprise it all worked. I just wanted to share in case anyone else runs into this issue.
|
Beta Was this translation helpful? Give feedback.
-
posts/kube-traefik-cert-manager-le/
Traefik, cert-manager, Cloudflare, and Let’s Encrypt are a winning combination when it comes to securing your services with certificates in Kubernetes. Today, we’ll install and configure Traefik, the cloud native proxy and load balancer, as our Kubernetes Ingress Controller. We’ll then install and configure cert-manager to manage certificates for our cluster. We’ll set up Let’s Encrypt as our Cluster Issuer so that cert-manager can automatically provision TLS certificates and even wildcard certificates using Cloudflare DNS challenge absolutely free. We’ll walk through all of this, step by step, so you can help secure your cluster today.
https://technotim.live/posts/kube-traefik-cert-manager-le/
Beta Was this translation helpful? Give feedback.
All reactions