Cert-manager: Issue creating ClusterIssuer

Created on 6 Dec 2019  路  1Comment  路  Source: jetstack/cert-manager

Describe the bug:
Migrated to new CertManager in K8S, issues with generating a ClusterIssuer

Expected behaviour:

I created a cert-manager deployment by following the instructions on https://cert-manager.io/docs/installation/kubernetes/

I attempt to create a new ClusterIssuer by applying the following YAML template on K8S:

apiVersion: certmanager.io/v1alpha2
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    # The ACME server URL
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    # Email address used for ACME registration
    email: [email protected]
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt-staging
    # Enable the HTTP-01 challenge provider
    solvers:
    - http01:
        ingress:
          class: nginx

This was updated to conform to the documentation as far as I could see.

However, I get this error:

error: unable to recognize "./k8s_utils/certManagerCI_staging.yaml": no matches for kind "ClusterIssuer" in version "certmanager.io/v1alpha2"

Steps to reproduce the bug:

See above

Anything else we need to know?:

Environment details::

/kind bug

kinbug

Most helpful comment

Solved, was missing - in cert-manager.io/v1alpha2

>All comments

Solved, was missing - in cert-manager.io/v1alpha2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

f-f picture f-f  路  4Comments

jbouzekri picture jbouzekri  路  4Comments

Stono picture Stono  路  3Comments

cpick picture cpick  路  3Comments

dontreboot picture dontreboot  路  3Comments