gpt4 book ai didi

ssl - 等待从订单状态 "pending"发出证书

转载 作者:行者123 更新时间:2023-12-02 11:34:56 27 4
gpt4 key购买 nike

我在使用 cert-manager 处理 tls 证书时遇到了问题,我正在关注文档并添加了一些额外内容以使用 Traefik作为入口。
目前,我有这个 YAML文件:
cluster-issuer.yaml

apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
namespace: secure-alexguedescom
spec:
acme:
email: user@gmail.com
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
# Secret resource used to store the account's private key.
name: letsencrypt-staging
# Add a single challenge solver, HTTP01 using nginx
solvers:
- selector: {}
http01:
ingress:
class: traefik-cert-manager
traefik-ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
# add an annotation indicating the issuer to use.
cert-manager.io/cluster-issuer: letsencrypt-staging
name: secure-alexguedescom-ingress-http
namespace: secure-alexguedescom
spec:
rules:
- host: secure.alexguedes.com
http:
paths:
- backend:
serviceName: secure-alexguedescom-nginx
servicePort: 80
path: /
tls:
- hosts:
- secure.alexguedes.com
secretName: secure-alexguedescom-cert
cert-staging.yaml
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: secure-alexguedescom-cert
namespace: secure-alexguedescom
spec:
commonName: secure.alexguedes.com
secretName: letsencrypt-staging
dnsNames:
- secure.alexguedes.com
issuerRef:
name: letsencrypt-staging
kind: ClusterIssuer
检查证书我有这个错误消息:
Message: Issuing certificate as Secret does not contain a certificate
Reason: MissingData
同时检查 certificaterequest我有这个日志消息:
Status:
Conditions:
Last Transition Time: 2020-08-16T00:32:01Z
Message: Waiting on certificate issuance from order secure-alexguedescom/secure-alexguedescom-cert-q8w5p-1982372682: "pending"
Reason: Pending
Status: False
Type: Ready
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal OrderCreated 11m cert-manager Created Order resource secure-alexguedescom/secure-alexguedescom-cert-q8w5p-1982372682
Normal OrderPending 11m cert-manager Waiting on certificate issuance from order secure-alexguedescom/secure-alexguedescom-cert-q8w5p-1982372682: ""
我不确定哪一 block 是错的,使用 Helm v2 和 Tiller 和 k8s v1.7
有任何想法吗?
提前致谢

最佳答案

letsencrypt 的典型问题certs 是 letencrypt 本身无法验证您是谁以及您拥有该域。在这种情况下,alexguedes.com .
使用 cert-manager,您可以执行 Domain ValidationHTTP Validation .基于发布的 ClusterIssuer你正在做 HTTP 验证。所以你需要确保 secure.alexguedes.com解析为全局可用的 IP 地址和 Traefik 端口 443正在监听该 IP 地址。

关于ssl - 等待从订单状态 "pending"发出证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63432101/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com