kubernetes 将证书管理器升级到v1.8.2 [已关闭]

jdzmm42g  于 2023-02-18  发布在  Kubernetes
关注(0)|答案(1)|浏览(185)

此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site的主题有关,您可以留下评论,说明在何处可以回答此问题。
昨天关门了。
Improve this question
我从cert-manager中删除了其他版本。之后我用helm安装了新版本。
安装工作正常。
但是当我使用命令时:

$ kubectl get orders,challenges,clusterissuers

Error from server: request to convert CR from an invalid group/version: acme.cert-manager.io/v1alpha2
Error from server: request to convert CR from an invalid group/version: acme.cert-manager.io/v1alpha2
Error from server: request to convert CR from an invalid group/version: cert-manager.io/v1alpha2

客户需求日:

Name:         orders.acme.cert-manager.io
Namespace:    
Labels:       app=cert-manager
              app.kubernetes.io/instance=cert-manager
              app.kubernetes.io/managed-by=Helm
              app.kubernetes.io/name=cert-manager
              app.kubernetes.io/version=v1.8.2
              helm.sh/chart=cert-manager-v1.8.2
Annotations:  cert-manager.io/inject-ca-from-secret: cert-manager/cert-manager-webhook-ca
              meta.helm.sh/release-name: cert-manager
              meta.helm.sh/release-namespace: cert-manager
API Version:  apiextensions.k8s.io/v1
Kind:         CustomResourceDefinition
....

    Last Transition Time:  2022-06-24T15:25:23Z
    Message:               no conflicts found
    Reason:                NoConflicts
    Status:                True
    Type:                  NamesAccepted
    Last Transition Time:  2022-06-24T15:25:23Z
    Message:               the initial names have been accepted
    Reason:                InitialNamesAccepted
    Status:                True
    Type:                  Established
  Stored Versions:
    v1

我在仍在使用www.example.com和www.example.com的地方找不到CR cert-manager.io/v1alpha2 and acme.cert-manager.io/v1alpha2

jecbmhm3

jecbmhm31#

首先,建议备份所有对象(证书、订单、发行人、集群用户等,例如velero)!
Cert-manger documentation建议将证书管理器cli用作:

cmctl upgrade migrate-api-version

如果您已经尝试手动修复CRD API(如本期所述),则可能需要--skip-stored-version-check

cmctl upgrade migrate-api-version --skip-stored-version-check

最后,如果失败并显示相同的消息,请使用install升级1.6.3(如果手动安装CRD,请使用1.6.3升级CRD)并重复cmctl upgrade migrate-api-version命令。最后,您可以逐个升级次要版本(1.7、1.8等)as recommended

相关问题