从certmanager.k8s.io/v1alpha1迁移证书到cert-manager.io/v1

发布于 2025-01-31 18:14:43 字数 698 浏览 4 评论 0原文

我正在从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挖个坑埋了你 2025-02-07 18:14:43

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文