【问题标题】:No matches for kind ClusterIssuer on a Digital Ocean Kubernetes Cluster数字海洋 Kubernetes 集群上的 kind ClusterIssuer 没有匹配项
【发布时间】:2018-12-28 23:53:05
【问题描述】:

我一直在关注this guide 创建一个运行良好的 nginx-ingress。

接下来我想创建一个名为letsencrypt-staging 的ClusterIssuer 对象,并使用Let's Encrypt 登台服务器,但出现此错误。

kubectl create -f staging_issuer.yaml

错误:无法识别“staging_issuer.yaml”:种类不匹配 版本“certmanager.k8s.io/v1alpha1”中的“ClusterIssuer”

我已经搜索了解决方案,但找不到任何适合我或我能理解的东西。我发现的主要是错误报告。

这是我用来创建 ClusterIssuer 的 yaml 文件。

apiVersion: certmanager.k8s.io/v1alpha1
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: your_email_address_here
   # Name of a secret used to store the ACME account private key
   privateKeySecretRef:
     name: letsencrypt-staging
   # Enable the HTTP-01 challenge provider
   http01: {}

【问题讨论】:

    标签: kubernetes digital-ocean lets-encrypt kubectl


    【解决方案1】:

    我通过运行helm del --purge cert-manager解决了这个问题

    然后

    helm install --name cert-manager --namespace kube-system stable/cert-manager --set createCustomResource=true
    

    【讨论】:

      【解决方案2】:

      尝试关注this链接,证书管理器 LetsEncrypt 已通知它将阻止版本

      this 创建 TLS 证书的链接,它对我有用。

      如果您遇到问题,请告诉我

      【讨论】:

        【解决方案3】:

        有时是 .yaml 文件中使用的空格字符。确保您没有使用制表符而不是空格。您可以删除“种类”中的行(或任何显示错误的行)并使用空格键重新写入,而不是制表符。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2015-08-04
          • 1970-01-01
          • 2018-07-14
          • 2018-07-12
          • 1970-01-01
          • 2021-06-27
          • 2018-02-22
          • 2021-04-02
          相关资源
          最近更新 更多