从certmanager.k8s.io/v1alpha1迁移证书到cert-manager.io/v1
我正在从certmanager.k8s.io/v1alpha1 迁移证书 到
cert-manager.io/v1
,但是,我会遇到此错误
错误验证数据:验证eRror(cuttrient.spec):io.cert-manager.v1.certificate.certificate.spec
中未知字段“ acme”
我的清单中
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: myapp-com-tls
namespace: default
spec:
secretName: myapp-com-tls
issuerRef:
name: letsencrypt-myapp-issuer
commonName: '*.myapp.com'
dnsNames:
- myapp.com
acme:
config:
- dns01:
provider: google-dns
domains:
- '*.myapp.com'
- myapp.com
未知字段“ acme”我知道没有更多acme
,但是如何迁移到较新的版本?
I am migrating Certificate from certmanager.k8s.io/v1alpha1
to cert-manager.io/v1
, however, I am getting this error
error validating data: ValidationError(Certificate.spec): unknown field "acme" in io.cert-manager.v1.Certificate.spec
My manifest
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: myapp-com-tls
namespace: default
spec:
secretName: myapp-com-tls
issuerRef:
name: letsencrypt-myapp-issuer
commonName: '*.myapp.com'
dnsNames:
- myapp.com
acme:
config:
- dns01:
provider: google-dns
domains:
- '*.myapp.com'
- myapp.com
I know that there is no more acme
, but how to migrate to a newer version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
cert-manager.io/v1
API版本将证书的角色分开发行人和证书。基本上,您需要 configure 在受支持的人中的证书发行人,例如 acme 。
该发行人稍后可用于获得证书。
请考虑阅读本教程,涉及从ACME获得的证书,并在 cert-manager.io文档。
The
cert-manager.io/v1
API version separates the roles of certificate issuers and certificates.Basically, you need to configure a certificate issuer among the supported ones, like ACME.
This issuer can be later used to obtain a certificate.
Please, consider read this tutorial about a certificate obtained from ACME with DNS validation in the cert-manager.io documentation.