<p>I want to generate SSL certificate automatically on Kubernetes. My site is already up and running but it is on HTTP:// not on HTTPS:// so which is the best way to provide them and generate the SSL certificate automatically.</p>

<p>I am new to k8s and learning. If the first time I manually install it then also the next time if the pod gets recreated the certificate will be deleted.</p>

<p>So suggest me easy way to manage certificate manager on K8s</p>

Harsh Manvar
<p>A few of options I can think of:</p>

<ol>
<li>You can try the <a href="https://github.com/jetstack/cert-manager" rel="nofollow noreferrer">certificate manager</a> with <a href="https://letsencrypt.org/" rel="nofollow noreferrer">Letsencrypt</a> certificates.</li>
<li>You can try an a Kubernetes <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">Ingress</a> with an ingress controller like <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">nginx</a> also with Letsencrypt and <a href="https://github.com/boxboat/kube-ingress-lets-encrypt" rel="nofollow noreferrer">this</a> described <a href="https://boxboat.com/2018/07/02/kubernetes-nginx-ingress-tls-secrets-all-namespaces/" rel="nofollow noreferrer">here</a>.</li>
<li>You can try a <a href="https://medium.com/@carlosedp/multiple-traefik-ingresses-with-letsencrypt-https-certificates-on-kubernetes-b590550280cf" rel="nofollow noreferrer">Traefik</a> ingress controller also with <a href="https://blog.osones.com/en/kubernetes-ingress-controller-with-traefik-and-lets-encrypt.html" rel="nofollow noreferrer">Letsencrypt</a>.</li>
</ol>
