cert-manager: CrashLoopBackOff and doesn't start cert-manager-cainjector
Describe the bug: The cert-manager-cainjector doesn’t start and retrieve error CrashLoopBackOff: back-off 1m20s
Steps to reproduce the bug: Install using rancher catalog
Anything else we need to know?:
Environment details::
- Kubernetes version (1.17):
- Cloud-provider/provisioner (Hetzner):
- cert-manager version : latest 14.0
- Install method : Catalog and with regular manifests
log
I0331 22:19:59.343989 1 start.go:82] starting ca-injector v0.11.0 (revision b030b7eb4)
E0331 22:20:01.957281 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_depth" "queue"="mutatingwebhookconfiguration"
E0331 22:20:01.957546 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_adds_total" "queue"="mutatingwebhookconfiguration"
E0331 22:20:01.957662 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_queue_duration_seconds" "queue"="mutatingwebhookconfiguration"
E0331 22:20:01.957732 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_work_duration_seconds" "queue"="mutatingwebhookconfiguration"
E0331 22:20:01.957820 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_unfinished_work_seconds" "queue"="mutatingwebhookconfiguration"
E0331 22:20:01.957914 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_longest_running_processor_seconds" "queue"="mutatingwebhookconfiguration"
E0331 22:20:01.958058 1 workqueue.go:37] cert-manager/controller-runtime/metrics "msg"="failed to register metric" "error"="duplicate metrics collector registration attempted" "name"="workqueue_retries_total" "queue"="mutatingwebhookconfiguration"
I0331 22:20:01.958720 1 controller.go:121] cert-manager/controller-runtime/controller "level"=0 "msg"="Starting EventSource" "controller"="mutatingwebhookconfiguration" "source"={"Type":{"metadata":{"creationTimestamp":null}}}
I0331 22:20:01.958844 1 controller.go:121] cert-manager/controller-runtime/controller "level"=0 "msg"="Starting EventSource" "controller"="mutatingwebhookconfiguration" "source"={"Type":{"metadata":{"creationTimestamp":null}}}
I0331 22:20:01.959188 1 controller.go:121] cert-manager/controller-runtime/controller "level"=0 "msg"="Starting EventSource" "controller"="mutatingwebhookconfiguration" "source"={"Type":{"metadata":{"creationTimestamp":null}}}
I0331 22:20:01.959216 1 controller.go:121] cert-manager/controller-runtime/controller "level"=0 "msg"="Starting EventSource" "controller"="mutatingwebhookconfiguration" "source"={"Type":{"metadata":{"creationTimestamp":null},"spec":{"secretName":"","issuerRef":{"name":""}},"status":{}}}
E0331 22:20:01.959352 1 source.go:88] cert-manager/controller-runtime/source "msg"="if kind is a CRD, it should be installed before calling Start" "error"="no matches for kind \"Certificate\" in version \"cert-manager.io/v1alpha2\"" "kind"={"Group":"cert-manager.io","Kind":"Certificate"}
F0331 22:20:01.959380 1 start.go:123] error registering controllers: no matches for kind "Certificate" in version "cert-manager.io/v1alpha2"
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 18 (3 by maintainers)
You just need to install the CustomResourceDefinition resources separately:
this problem suddenly popped up today cert-manager-cainjector-7959549c78-d8tpq 0/1 CrashLoopBackOff 332 144d all tricks and tips i tired but it is not helping, any is highly appreciated
Thanks ,just wanted to point it out , will upgrade