Just want to know if kubernetes's add-on cert-manager can import existing certificate, as i just want to have certificate import into the cluster and work in all namespaces.
Short answer: Yes, you can import existing certificates into the cluster.
Longer answer: Assuming you've done all the usual stuff to generate a certificate from a known CA like Symantec, Entrust, etc. You need to do the following:
domain.pem
), and the actual certificate itself (e.g domain.crt
)$ kubectl create secret generic domain-tls \
--from-file=tls.key=domain.pem \
--from-file=tls.crt=domain.crt
If all goes well, the ingress controller should serve that certificate