简体   繁体   English

重用 kubernetes letencrypt 证书

[英]Reuse kubernetes letsencrypt certificate

I have a kubernetes cluster and I've been experimenting so far with cert-manager and letsencrypt ssl certificates.我有一个 kubernetes 集群,到目前为止我一直在试验 cert-manager 和letsencrypt ssl 证书。

Everything goes fine, I have issued an SSL certificate and applied to the cluster and https connection is working excellent.一切正常,我已经颁发了 SSL 证书并应用于集群,https 连接工作良好。

The problem I face is that I am experimenting with new things and it often leads me to delete the whole cluster and create a new fresh one, which on it's side makes me lose the SSL certificate and issue a new one, but there's a rate limit by 50 certificates per week per domain.我面临的问题是我正在尝试新事物,它经常导致我删除整个集群并创建一个新的新集群,这让我失去了 SSL 证书并颁发了一个新的证书,但是有一个速率限制每个域每周 50 个证书。

Is there a way I can reuse a certificate in a new k8s cluster?有没有办法可以在新的 k8s 集群中重用证书?

Copy the secret locally ( kubectl get secret -o yaml and then clean up unneeded fields) and then upload it to the new cluster ( kubectl apply ).在本地复制密钥( kubectl get secret -o yaml然后清理不需要的字段),然后将其上传到新集群( kubectl apply )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM