techno-tim / launchpad

A collection of quick starters for ansible, kubernetes, docker, linux, windows, and more. Great for HomeLabs!
https://technotim.live
1.47k stars 480 forks source link

cert-manager CRDs not installed on k3s v1.29.2+k3s1 #55

Closed sprijk closed 7 months ago

sprijk commented 7 months ago

Hi,

I'm following along this post: https://technotim.live/posts/kube-traefik-cert-manager-le/ (Great stuff! Much appreciated!)

Using k3s version v1.29.2+k3s1:

$ k3s -v
k3s version v1.29.2+k3s1 (86f10213)
go version go1.21.7

Then after applying the latest (v1.14.4) cert-manager CRDs:

$ kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.4/cert-manager.crds.yaml
customresourcedefinition.apiextensions.k8s.io/certificaterequests.cert-manager.io unchanged
customresourcedefinition.apiextensions.k8s.io/certificates.cert-manager.io unchanged
customresourcedefinition.apiextensions.k8s.io/challenges.acme.cert-manager.io unchanged
customresourcedefinition.apiextensions.k8s.io/clusterissuers.cert-manager.io unchanged
customresourcedefinition.apiextensions.k8s.io/issuers.cert-manager.io unchanged
customresourcedefinition.apiextensions.k8s.io/orders.acme.cert-manager.io unchanged

k3s does not recognize the new CRDs:

$ k get certificates
error: the server doesn't have a resource type "certificates"

The cert-manager helm install works well, but also complains about missing 'Certificate' resources.

Could this be an API mismatch with my version of k3s?

Thanks a lot for any help.

sprijk commented 7 months ago

Possibly the masters were not in sync. Simply retrying solved it!