我一直在关注this guide创建一个工作正常的 nginx-ingress 。
接下来,我想创建一个名为 Letsencrypt-staging 的 ClusterIssuer 对象,并使用 Let's Encrypt 临时服务器,但出现此错误。
kubectl create -f staging_issuer.yaml
error: unable to recognize "staging_issuer.yaml": no matches for kind "ClusterIssuer" in version "certmanager.k8s.io/v1alpha1"
我已经搜索了解决方案,但找不到任何适合我或我能理解的内容。我发现的大部分是错误报告。
这是我用来创建 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: {}
最佳答案
尝试以下 this链接,证书管理器 LetsEncrypt 已通知它将阻止 < 0.8.0 版本的所有流量,因此您可以使用 Jetstack 的安装步骤,然后您可以按照
this链接获取 TLS 证书创建,它对我有用。
如果您遇到问题,请告诉我
关于kubernetes - Digital Ocean Kubernetes 集群上没有与类型 ClusterIssuer 匹配的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53965526/