Bugs should be filed for issues encountered whilst operating cert-manager.
You should first attempt to resolve your issues through the community support
channels, e.g. Slack, in order to rule out individual configuration errors.
Please provide as much detail as possible.
Describe the bug:
Following the installation instructions for OpenShift (https://cert-manager.io/docs/installation/openshift/#login-to-your-openshift-cluster). The deployment completes successfully however kind:ClusterIssuer is not recognised.
Expected behaviour:
kind: ClusterIssuer recognised in the yaml.
Steps to reproduce the bug:
Using OpenShift 4.5.7 follow installation instructions (Option 1).
Environment details::
/kind bug
I am also getting this error when upgrading to v1.0.0
no matches for kind "ClusterIssuer" in version "cert-manager.io/v1
Can you get us the output of kubectl get crd and kubectl describe crd clusterissuers.cert-manager.io?
attached..
clusterissuers.txt
crd.txt
@RobbieJVMW we haven't finished updating the installation instructions for OpenShift. See https://github.com/cert-manager/website/pull/318
Is it possible that you've actually installed cert-manager 0.16.1? That previous version does not support the new V1 API.
Sounds entirely possible - the install guide did point at a 0.16.1 .. look's like the doc has been updated. I will re-test.
yes, the new doc's pointing at the 1.0 release has resolved the issue.
Sounds entirely possible - the install guide did point at a 0.16.1 .. look's like the doc has been updated. I will re-test.
Robbie please share the updated doc link, you have used to resolve this.
The install guide on on cert-manager.io has been updated to link to the v1.0 deployment yaml. I didn鈥檛 need to do anything apart from re-test using the new config.
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
email: {{email}}
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-staging
solvers:
- http01:
ingress:
class: nginx
This ClusterIssuer still does not working when following steps found here:
cert-manager.io
Kube version: 1.18
Helm version: 3
Guide: Installation/Kubernetes
Error Response back:
**no matches for kind "ClusterIssuer" in version "cert-manager.io/v1"**
@wallrj
@vosuyak what do you see for kubectl describe crd clusterissuers.cert-manager.io ?
@vosuyak Had the same problem but found out that in the newer versions when using HELM the cluster CRDs are not installed by default. It worked after uninstalling an reinstalling with:
helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--version v1.0.1 \
--set installCRDs=true
note the --set installCRDs=true at the end.
Hope this helps.
@proligde I'm still running into this issue on a fresh install with helm 3.3.4 using cert-manager as a dependency:
e.g.
> helm install my-project --set cert-manager.installCRDs=true
...
Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "ClusterIssuer" in version "cert-manager.io/v1"
From what I've read, the problem sounds like the discovery caching logic in helm3. So you can't both install CRDs and use them in a single helm install step, if installing CRDs through an ordinary template, like cert-manager does.
The recommended way of installing CRDs in helm3 is putting them in the crds/ directory -- I'm using another dependency (prometheus-operator) which does this and I'm able to install everything cleanly in one step. Is there a reason why this can't be done in the cert-manager chart?
Right now the workaround is to install my project in two separate commands - one to installCRDs for cert-manager, the other to set up my project and reference these CRDs, which is a little annoying.
@jnu cert-manager as a chart dependancy will always give issues due to the Helm dependancy model.
the crds folder in Helm doesn't allow us to update the CRDs there is an open discussion to improve this on the Helm side.
@RobbieJVMW we haven't finished updating the installation instructions for OpenShift. See cert-manager/website#318
Is it possible that you've actually installed cert-manager 0.16.1? That previous version does not support the new V1 API.
This was my issue. Thanks!
Most helpful comment
@vosuyak Had the same problem but found out that in the newer versions when using HELM the cluster CRDs are not installed by default. It worked after uninstalling an reinstalling with:
note the --set installCRDs=true at the end.
Hope this helps.