简体   繁体   中英

Importing existing certificate from k8s Secret into cert-manager CR Certificate

Let me start with Why?

My cert-manager manages dozens of my certs issued by private ACME CA server. I use them for ingress and egress traffic(mTLS). Now, I have to use certs for some use cases issued by public CA. So cert-manager would not help me with that but could help me with life cycle of these certs (Prometheus metrics to be precise).

Let's say we have some cert in the K8s secret:

kubectl create secret generic my-cert \
  --from-file=tls.key=cert.key \
  --from-file=tls.crt=cert.crt

Is there a way to create cert-manager Certificate from that Secret ?

According to Allow upload of external certificates there is no option to do that right now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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