Describe the bug
The cert-manager-cainjector pod reports the following error when it is started
I1129 14:12:25.476834 1 start.go:82] starting ca-injector v0.12.0 (revision 0e384f5d0)
聽 | I1129 14:12:26.085526 1 controller.go:121] cert-manager/controller-runtime/controller "level"=0 "msg"="Starting EventSource" "controller"="mutatingwebhookconfiguration" "source"={"Type":{"metadata":{"creationTimestamp":null}}}
...聽
I1129 14:12:26.095504 1 controller.go:121] cert-manager/controller-runtime/controller "level"=0 "msg"="Starting EventSource" "controller"="customresourcedefinition" "source"={"Type":{"metadata":{"creationTimestamp":null}}}
I1129 14:12:26.095597 1 leaderelection.go:241] attempting to acquire leader lease kube-system/cert-manager-cainjector-leader-election-core...
E1129 14:12:28.182666 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"}
F1129 14:12:28.182734 1 start.go:123] error registering controllers: no matches for kind "Certificate" in version "cert-manager.io/v1alpha2"
Steps to reproduce the bug:
Anything else we need to know?:
The 3 CRDs of the cert manager have not been installed as some errors are reported
Environment details::
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://88.99.185.118:8443
kubernetes v1.11.0+d4cacc0
/kind bug
The minimum supported Kubernetes version in cert-manager is v1.12, and from your output it appears you are attempting to deploy to OpenShift built with Kubernetes 1.11.
I'm not too familiar with OpenShift's release process or versioning, but you'll need to upgrade to a compatible version in order to continue using cert-manager.
It's worth noting that Kubernetes 1.11 is officially EoL now, and no new security patches will be provided for it.
It's worth noting that Kubernetes 1.11 is officially EoL now, and no new security patches will be provided for it.
Can you then add a warning within the doc to mention that installation will fail for ocp 3.11 and that a new version of ocp4 should be then used ?
had the issue with 1.15 -- it works in 1.16
any help or suggestion?
error: unable to recognize "/etc/rook/object-ssl-cert.yaml": no matches for kind "Certificate" in version "cert-manager.io/v1alpha2"
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.4", GitCommit:"67d2fcf276fcd9cf743ad4be9a9ef5828adc082f", GitTreeState:"clean", BuildDate:"2019-09-18T14:51:13Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.4", GitCommit:"67d2fcf276fcd9cf743ad4be9a9ef5828adc082f", GitTreeState:"clean", BuildDate:"2019-09-18T14:41:55Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
I found the issue,
in 1.15 -- apiVersion: certmanager.k8s.io/v1alpha1 works
In 1.16 -- it's apiVersion: cert-manager.io/v1alpha2
apiVersion: certmanager.k8s.io/v1alpha1 doesn't work in 1.16
@amgads the issue you're seeing is not related to what Kubernetes version you are running, rather, it sounds like in your 1.15 cluster you have CRDs installed from a pre-0.11 version of cert-manager. Please make sure to upgrade your installation. More information on how to do this can be found here: https://cert-manager.io/docs/installation/upgrading/
Hope that helps!