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
Solved, was missing - in cert-manager.io/v1alpha2
Most helpful comment
Solved, was missing
-incert-manager.io/v1alpha2